39 references to DistributedApplicationTestingBuilder
Aspire.Hosting.Testing (12)
DistributedApplicationTestingBuilder.cs (12)
18/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 25/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 33/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 38/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 45/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 53/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 61/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 67/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 74/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 83/// A new instance of <see cref="DistributedApplicationTestingBuilder"/>. 90/// Creates a new instance of <see cref="DistributedApplicationTestingBuilder"/>. 97/// 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)
54var appHost = await DistributedApplicationTestingBuilder.CreateAsync(appHostType, ["--skip-resources", resourcesToSkip.ToCSVString()]); 68var ioe = await Assert.ThrowsAsync<InvalidOperationException>(() => DistributedApplicationTestingBuilder.CreateAsync(typeof(Microsoft.Extensions.Logging.ConsoleLoggerExtensions))); 87? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([], configureBuilder) 88: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost), [], configureBuilder)); 111? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 112: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 134? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 135: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 152? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 153: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 173? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 174: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 186? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 187: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 201? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>() 202: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost))); 240genericEntryPoint ? DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token) 241: DistributedApplicationTestingBuilder.CreateAsync(typeof(Projects.TestingAppHost1_AppHost), [$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token)); 248? await DistributedApplicationTestingBuilder.CreateAsync<Projects.TestingAppHost1_AppHost>([$"--crash-{crashArg}"], cts.Token).WaitAsync(cts.Token) 249: 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);