8 instantiations of DummyAnnotation
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
42.WithAnnotation(new DummyAnnotation()); 54.WithAnnotation(new DummyAnnotation()); 104.WithAnnotation(new DummyAnnotation()); 118.WithAnnotation(new DummyAnnotation()); 121.WithAnnotation(new DummyAnnotation()); 133.WithAnnotation(new DummyAnnotation()); 136.WithAnnotation(new DummyAnnotation()); 139.WithAnnotation(new DummyAnnotation());
20 references to DummyAnnotation
Aspire.Hosting.Tests (20)
ResourceExtensionsTests.cs (20)
20Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 21Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 32Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 33Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 44Assert.True(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 45Assert.True(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 56Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 57Assert.True(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 67Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 68Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 79Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 80Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 94Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 95Assert.False(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 108Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 109Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 123Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 124Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 141Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 142Assert.True(grandchild.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations));