8 instantiations of DummyAnnotation
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
41.WithAnnotation(new DummyAnnotation()); 53.WithAnnotation(new DummyAnnotation()); 103.WithAnnotation(new DummyAnnotation()); 117.WithAnnotation(new DummyAnnotation()); 120.WithAnnotation(new DummyAnnotation()); 132.WithAnnotation(new DummyAnnotation()); 135.WithAnnotation(new DummyAnnotation()); 138.WithAnnotation(new DummyAnnotation());
20 references to DummyAnnotation
Aspire.Hosting.Tests (20)
ResourceExtensionsTests.cs (20)
19Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 20Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 31Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 32Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 43Assert.True(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 44Assert.True(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 55Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 56Assert.True(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 66Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 67Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 78Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 79Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 93Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 94Assert.False(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 107Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 108Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 122Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 123Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 140Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 141Assert.True(grandchild.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations));