11 writes to Layout
Aspire.Cli.Tests (11)
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)
286
bundle.
Layout
= null;
548
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)
114
Layout
= layout,
784
Layout
= layout,
2583
Layout
= layout,
4831
Layout
= layout
23 references to Layout
Aspire.Cli.Tests (23)
Commands\TrayCommandTests.cs (21)
54
? ["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", cliPath]
55
: ["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
76
Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
90
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!], factory.LastArguments);
106
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", installed],
129
var layout = bundle.
Layout
!;
191
Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.
Layout
!.LayoutPath!, "--startup-cli", cliPath], factory.LastArguments!);
192
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
.LayoutPath!));
282
var root = bundle.
Layout
!.LayoutPath!;
293
bundle.
Layout
.Components.Tray = null;
296
File.Delete(bundle.
Layout
.GetTrayPath()!);
341
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
368
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
385
var root = bundle.
Layout
!.LayoutPath!;
437
var root = bundle.
Layout
!.LayoutPath!;
497
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
568
bundle.
Layout
!.Components.Tray = WindowsTrayPayload.ExecutablePath;
569
WindowsTrayTestPayload.Create(Path.Combine(bundle.
Layout
.LayoutPath!, "tray"),
596
Assert.False(BundleVersionLease.HasActiveLease(bundle.
Layout
!.LayoutPath!));
640
var root = bundle.
Layout
!.LayoutPath!;
652
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));