8 instantiations of DummyAnnotation
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
43.WithAnnotation(new DummyAnnotation()); 55.WithAnnotation(new DummyAnnotation()); 105.WithAnnotation(new DummyAnnotation()); 119.WithAnnotation(new DummyAnnotation()); 122.WithAnnotation(new DummyAnnotation()); 134.WithAnnotation(new DummyAnnotation()); 137.WithAnnotation(new DummyAnnotation()); 140.WithAnnotation(new DummyAnnotation());
20 references to DummyAnnotation
Aspire.Hosting.Tests (20)
ResourceExtensionsTests.cs (20)
21Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 22Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 33Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 34Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 45Assert.True(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 46Assert.True(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 57Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 58Assert.True(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 68Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 69Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 80Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 81Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 95Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 96Assert.False(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 109Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 110Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 124Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 125Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 142Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 143Assert.True(grandchild.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations));