8 instantiations of DummyAnnotation
Aspire.Hosting.Tests (8)
ResourceExtensionsTests.cs (8)
65.WithAnnotation(new DummyAnnotation()); 77.WithAnnotation(new DummyAnnotation()); 127.WithAnnotation(new DummyAnnotation()); 141.WithAnnotation(new DummyAnnotation()); 144.WithAnnotation(new DummyAnnotation()); 156.WithAnnotation(new DummyAnnotation()); 159.WithAnnotation(new DummyAnnotation()); 162.WithAnnotation(new DummyAnnotation());
20 references to DummyAnnotation
Aspire.Hosting.Tests (20)
ResourceExtensionsTests.cs (20)
43Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 44Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 55Assert.False(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 56Assert.False(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 67Assert.True(parent.Resource.HasAnnotationOfType<DummyAnnotation>()); 68Assert.True(parent.Resource.TryGetAnnotationsOfType<DummyAnnotation>(out var annotations)); 79Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 80Assert.True(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 90Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 91Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 102Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 103Assert.False(parent.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 117Assert.False(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 118Assert.False(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 131Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 132Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 146Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 147Assert.True(child.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations)); 164Assert.True(parent.Resource.HasAnnotationIncludingAncestorsOfType<DummyAnnotation>()); 165Assert.True(grandchild.Resource.TryGetAnnotationsIncludingAncestorsOfType<DummyAnnotation>(out var annotations));