3 instantiations of DenoStateDto
Aspire.Hosting.Tests (3)
AtsAnnotationTests.cs (3)
64var state = new DenoStateDto { ScriptPath = "main.ts", Permissions = ["--allow-net"], Mode = DenoMode.Watch }; 80var state = new DenoStateDto { ScriptPath = "main.ts", Permissions = ["--allow-net"], Mode = DenoMode.Watch }; 140container.WithAnnotation(s_stateAnnotation, new DenoStateDto { ScriptPath = "main.ts" });
6 references to DenoStateDto
Aspire.Hosting.Tests (6)
AtsAnnotationTests.cs (6)
11private static readonly AnnotationDefinition<DenoStateDto> s_stateAnnotation = new("spike.deno/state"); 64var state = new DenoStateDto { ScriptPath = "main.ts", Permissions = ["--allow-net"], Mode = DenoMode.Watch }; 69var roundTripped = container.Resource.GetAnnotation(s_stateAnnotation); 80var state = new DenoStateDto { ScriptPath = "main.ts", Permissions = ["--allow-net"], Mode = DenoMode.Watch }; 137Assert.False(container.Resource.TryGetAnnotation(s_stateAnnotation, out var missing)); 142Assert.True(container.Resource.TryGetAnnotation(s_stateAnnotation, out var present));