14 references to CreateContext
Aspire.Hosting.RemoteHost.Tests (14)
ExternalCapabilityRegistryTests.cs (14)
133
Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
177
var augmentationError = Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
262
var marshaller = new AtsMarshaller(handles,
CreateContext
(), tokens,
488
Assert.Equal("test.external/value", Assert.Single(registry.AugmentContext(
CreateContext
()).Capabilities).CapabilityId);
514
Assert.Collection(registry.AugmentContext(
CreateContext
()).Capabilities,
540
var capability = Assert.Single(registry.AugmentContext(
CreateContext
()).Capabilities);
568
var capability = Assert.Single(registry.AugmentContext(
CreateContext
()).Capabilities);
589
Assert.Equal("test.external/value", Assert.Single(registry.AugmentContext(
CreateContext
()).Capabilities).CapabilityId);
786
var augmentationException = Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
809
var augmentationException = Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
829
var augmentationException = Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
858
var augmentationException = Assert.Throws<InvalidOperationException>(() => registry.AugmentContext(
CreateContext
()));
896
var context =
CreateContext
(managedCapability);
922
var context =
CreateContext
(managedCapability);