5 references to WithReference
Aspire.Hosting.Tests (5)
ExternalServiceTests.cs (2)
554var ex = Assert.Throws<InvalidOperationException>(() => project.WithReference("api", uri)); 567project.WithReference("api", uri);
WithReferenceTests.cs (3)
483Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("petstore.swagger.io", UriKind.Relative))); 491Assert.Throws<InvalidOperationException>(() => builder.AddProject<ProjectA>("projecta").WithReference("petstore", new Uri("https://petstore.swagger.io/v2"))); 500.WithReference("petstore", new Uri("https://petstore.swagger.io/"));