53 references to TestProgram
Aspire.Hosting.Tests (50)
AsHttp2ServiceTests.cs (2)
74private static TestProgram CreateTestProgram(string[] args) => TestProgram.Create<AsHttp2ServiceTests>(args, disableDashboard: true);
DistributedApplicationTests.cs (23)
44using var testProgram = CreateTestProgram(); 72using var testProgram = CreateTestProgram(); 113using var testProgram = CreateTestProgram(); 132using var testProgram = CreateTestProgram(); 150using var testProgram = CreateTestProgram(); 185using var testProgram = CreateTestProgram(); 240using var testProgram = CreateTestProgram(); 270using var testProgram = CreateTestProgram(randomizePorts: false); 310using var testProgram = CreateTestProgram(randomizePorts: false); 344using var testProgram = CreateTestProgram(randomizePorts: false); 406using var testProgram = CreateTestProgram(args: args, disableDashboard: false); 445using var testProgram = CreateTestProgram(args: args, disableDashboard: false); 476using var testProgram = CreateTestProgram(); 504using var testProgram = CreateTestProgram(); 534using var testProgram = CreateTestProgram(); 564using var testProgram = CreateTestProgram(); 593using var testProgram = CreateTestProgram(includeIntegrationServices: true); 650using var testProgram = CreateTestProgram(); 668using var testProgram = CreateTestProgram(); 687using var testProgram = CreateTestProgram(); 722using var testProgram = CreateTestProgram(); 898private static TestProgram CreateTestProgram( 903TestProgram.Create<DistributedApplicationTests>(
Helpers\JsonDocumentManifestPublisher.cs (1)
43public static JsonDocumentManifestPublisher GetManifestPublisher(this TestProgram testProgram)
ManifestGenerationTests.cs (15)
22using var program = CreateTestProgramJsonDocumentManifestPublisher(); 39using var program = CreateTestProgramJsonDocumentManifestPublisher(); 56using var program = CreateTestProgramJsonDocumentManifestPublisher(); 74using var program = CreateTestProgramJsonDocumentManifestPublisher(); 113using var program = CreateTestProgramJsonDocumentManifestPublisher(); 175using var program = CreateTestProgramJsonDocumentManifestPublisher(); 212using var program = CreateTestProgramJsonDocumentManifestPublisher(); 232using var program = CreateTestProgramJsonDocumentManifestPublisher(); 251using var program = CreateTestProgramJsonDocumentManifestPublisher(); 271using var program = CreateTestProgramJsonDocumentManifestPublisher(); 293using var program = CreateTestProgramJsonDocumentManifestPublisher(); 312using var program = CreateTestProgramJsonDocumentManifestPublisher(includeIntegrationServices: true); 541private static TestProgram CreateTestProgramJsonDocumentManifestPublisher(bool includeIntegrationServices = false, bool includeNodeApp = false) 543var program = TestProgram.Create<ManifestGenerationTests>(GetManifestArgs(), includeIntegrationServices, includeNodeApp);
SlimTestProgramTests.cs (4)
23var testProgram = _slimTestProgramFixture.TestProgram; 31private static async Task EnsureServicesAreRunning(TestProgram testProgram, CancellationToken cancellationToken) 47var testProgram = _slimTestProgramFixture.TestProgram; 65var testProgram = _slimTestProgramFixture.TestProgram;
TestProgramFixture.cs (5)
17private TestProgram? _testProgram; 19public TestProgram TestProgram => _testProgram ?? throw new InvalidOperationException("TestProgram is not initialized."); 23public abstract TestProgram CreateTestProgram(); 60public override TestProgram CreateTestProgram() 62return TestProgram.Create<DistributedApplicationTests>(randomizePorts: false);
TestProject.AppHost (3)
Program.cs (2)
4var testProgram = TestProgram.Create<Program>(args, includeIntegrationServices: true, disableDashboard: false);
TestProgram.cs (1)
93public static TestProgram Create<T>(