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