39 references to DistributedApplicationTestingBuilder
Aspire.Hosting.Testing (12)
DistributedApplicationTestingBuilder.cs (12)
17/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 24/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 32/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 37/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 44/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 52/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 60/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 66/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 73/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 82/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 89/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 96/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>.
Aspire.Hosting.Testing.Tests (26)
PublicApiTests.cs (5)
14var ane = await Assert.ThrowsAsync<ArgumentNullException>(() => DistributedApplicationTestingBuilder.CreateAsync(entryPoint: null!)); 24? () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args: null!) 25: () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint: typeof(Projects.TestingAppHost1_AppHost), args: null!); 37? () => DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>(args: [], configureBuilder: null!) 38: () => DistributedApplicationTestingBuilder.CreateAsync(entryPoint: typeof(Projects.TestingAppHost1_AppHost), args: [], configureBuilder: null!);
ResourceLoggerForwarderServiceTests.cs (1)
22var appHost = await DistributedApplicationTestingBuilder.CreateAsync<TestingAppHost1_AppHost>();
TestingBuilderTests.cs (20)
45var appHost = await DistributedApplicationTestingBuilder.CreateAsync(appHostType, ["--skip-resources", resourcesToSkip.ToCSVString()]); 59var ioe = await Assert.ThrowsAsync<InvalidOperationException>(() => DistributedApplicationTestingBuilder.CreateAsync(typeof(Microsoft.Extensions.Logging.ConsoleLoggerExtensions))); 78? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([], configureBuilder) 79: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost), [], configureBuilder)); 102? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 103: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 125? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 126: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 143? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 144: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 164? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 165: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 177? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 178: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 192? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 193: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 231genericEntryPoint ? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token) 232: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost), [$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token)); 239? await DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token) 240: await DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost), [$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token);
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationTestFactory.cs (1)
28var builder = await DistributedApplicationTestingBuilder.CreateAsync(appHostType);