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 (24)
49using var testProgram = CreateTestProgram(); 77using var testProgram = CreateTestProgram(); 117using var testProgram = CreateTestProgram(); 161using var testProgram = CreateTestProgram(); 180using var testProgram = CreateTestProgram(); 198using var testProgram = CreateTestProgram(); 233using var testProgram = CreateTestProgram(); 288using var testProgram = CreateTestProgram(); 318using var testProgram = CreateTestProgram(randomizePorts: false); 370using var testProgram = CreateTestProgram(randomizePorts: false); 404using var testProgram = CreateTestProgram(randomizePorts: false); 466using var testProgram = CreateTestProgram(args: args, disableDashboard: false); 505using var testProgram = CreateTestProgram(args: args, disableDashboard: false); 536using var testProgram = CreateTestProgram(); 564using var testProgram = CreateTestProgram(); 594using var testProgram = CreateTestProgram(); 624using var testProgram = CreateTestProgram(); 653using var testProgram = CreateTestProgram(includeIntegrationServices: true); 710using var testProgram = CreateTestProgram(); 728using var testProgram = CreateTestProgram(); 747using var testProgram = CreateTestProgram(); 782using var testProgram = CreateTestProgram(); 1013private static TestProgram CreateTestProgram( 1018TestProgram.Create<DistributedApplicationTests>(
Helpers\JsonDocumentManifestPublisher.cs (1)
43public static JsonDocumentManifestPublisher GetManifestPublisher(this TestProgram testProgram)
ManifestGenerationTests.cs (14)
22using var program = CreateTestProgramJsonDocumentManifestPublisher(); 39using var program = CreateTestProgramJsonDocumentManifestPublisher(); 56using var program = CreateTestProgramJsonDocumentManifestPublisher(); 74using var program = CreateTestProgramJsonDocumentManifestPublisher(); 138using var program = CreateTestProgramJsonDocumentManifestPublisher(); 175using var program = CreateTestProgramJsonDocumentManifestPublisher(); 195using var program = CreateTestProgramJsonDocumentManifestPublisher(); 214using var program = CreateTestProgramJsonDocumentManifestPublisher(); 234using var program = CreateTestProgramJsonDocumentManifestPublisher(); 256using var program = CreateTestProgramJsonDocumentManifestPublisher(); 275using var program = CreateTestProgramJsonDocumentManifestPublisher(includeIntegrationServices: true); 504private static TestProgram CreateTestProgramJsonDocumentManifestPublisher(bool includeIntegrationServices = false, bool includeNodeApp = false) 506var 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)
92public static TestProgram Create<T>(