12 writes to Layout
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (1)
707
bundleService.
Layout
= layout;
Commands\StopCommandTests.cs (1)
1540
options.BundleServiceFactory = _ => new TestBundleService(isBundle: true) {
Layout
= layout };
Commands\TrayCommandTests.cs (2)
352
bundle.
Layout
= null;
614
Layout
= layout,
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
172
Layout
= new LayoutConfiguration { LayoutPath = versionRoot.FullName }
ProfileCaptureServiceTests.cs (2)
128
Layout
= new LayoutConfiguration { LayoutPath = layoutRoot.FullName }
161
Layout
= new LayoutConfiguration { LayoutPath = layoutRoot.FullName }
Projects\DotNetAppHostProjectTests.cs (4)
154
Layout
= layout,
824
Layout
= layout,
2623
Layout
= layout,
4871
Layout
= layout
Projects\NativeAppHostServerProjectTests.cs (1)
39
Layout
= new LayoutConfiguration { LayoutPath = workspace.Path }
32 references to Layout
Aspire.Cli.Tests (32)
Commands\TrayCommandTests.cs (30)
32
bundle.
Layout
!.Components.Tray = LinuxTrayPayload.ExecutablePath;
33
var directory = Path.GetDirectoryName(bundle.
Layout
.GetTrayPath()!)!;
39
Assert.Equal(bundle.
Layout
.GetTrayPath(), factory.LastFileName);
41
? ["start", "--cli", cli, "--bundle-root", bundle.
Layout
.LayoutPath!, "--startup-cli", cli]
53
bundle.
Layout
!.Components.Tray = LinuxTrayPayload.ExecutablePath;
54
LinuxTrayTestPayload.Create(Path.GetDirectoryName(bundle.
Layout
.GetTrayPath()!)!,
77
bundle.
Layout
!.Components.Tray = LinuxTrayPayload.ExecutablePath;
78
LinuxTrayTestPayload.Create(Path.GetDirectoryName(bundle.
Layout
.GetTrayPath()!)!,
85
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
.LayoutPath!));
118
? ["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", cliPath]
119
: ["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
140
Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
154
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
170
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", installed],
193
var layout = bundle.
Layout
!;
255
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", cliPath], factory.LastArguments!);
256
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
.LayoutPath!));
348
var root = bundle.
Layout
!.LayoutPath!;
359
bundle.
Layout
.Components.Tray = null;
362
File.Delete(bundle.
Layout
.GetTrayPath()!);
407
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
434
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
451
var root = bundle.
Layout
!.LayoutPath!;
503
var root = bundle.
Layout
!.LayoutPath!;
563
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
634
bundle.
Layout
!.Components.Tray = WindowsTrayPayload.ExecutablePath;
635
WindowsTrayTestPayload.Create(Path.Combine(bundle.
Layout
.LayoutPath!, "tray"),
662
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
706
var root = bundle.
Layout
!.LayoutPath!;
718
File.Copy(typeof(TrayCommandTests).Assembly.Location, bundle.
Layout
.GetTrayPath()!, overwrite: true);
Utils\CliTestHelper.cs (2)
907
return CreateLayoutLease?.Invoke() ?? (
Layout
is null ? null : new BundleLayoutLease(
Layout
, lease: null));