1 write to Project
Aspire.Templates.Tests (1)
TemplateAppFixture.cs (1)
38
Project
= await AspireProject.CreateNewTemplateProjectAsync(
24 references to Project
Aspire.Templates.Tests (24)
EmptyTemplateRunTests.cs (2)
26
await _testFixture.
Project
!.OpenDashboardPageAsync(context),
29
logPath: _testFixture.
Project
.LogPath);
StarterTemplateRunTestsBase.cs (13)
31
await _testFixture.
Project
!.OpenDashboardPageAsync(context),
32
GetExpectedResources(_testFixture.
Project
!, hasRedisCache: HasRedisCache),
34
logPath: _testFixture.
Project
.LogPath);
45
await _testFixture.
Project
!.OpenDashboardPageAsync(context),
46
GetExpectedResources(_testFixture.
Project
!, hasRedisCache: HasRedisCache),
48
logPath: _testFixture.
Project
.LogPath);
50
string url = _testFixture.
Project
.InfoTable["webfrontend"].Endpoints
53
await CheckWebFrontendWorksAsync(context, url, _testOutput, _testFixture.
Project
.LogPath, hasRedisCache: HasRedisCache);
64
await _testFixture.
Project
!.OpenDashboardPageAsync(context),
65
GetExpectedResources(_testFixture.
Project
!, hasRedisCache: HasRedisCache),
67
logPath: _testFixture.
Project
.LogPath);
69
string url = _testFixture.
Project
.InfoTable["apiservice"].Endpoints
72
await CheckApiServiceWorksAsync(url, _testOutput, _testFixture.
Project
.LogPath);
TemplateAppFixture.cs (9)
46
await
Project
.BuildAsync(extraBuildArgs: [$"-c {_config}"]);
47
await
Project
.StartAppHostAsync(extraArgs: [$"-c {_config}"]);
52
if (
Project
is not null)
54
await
Project
.DisposeAsync();
60
if (
Project
!.AppHostProcess is null ||
Project
.AppHostProcess.HasExited ||
Project
.AppExited?.Task.IsCompleted == true)
62
throw new InvalidOperationException($"The app host process is not running. {
Project
.AppHostProcess?.HasExited}, {
Project
.AppExited?.Task.IsCompleted}");