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