11 writes to Layout
Aspire.Cli.Tests (11)
Commands\DashboardRunCommandTests.cs (1)
707bundleService.Layout = layout;
Commands\StopCommandTests.cs (1)
1540options.BundleServiceFactory = _ => new TestBundleService(isBundle: true) { Layout = layout };
Commands\TrayCommandTests.cs (2)
286bundle.Layout = null; 548Layout = layout,
Processes\ProcessTreeGracefulShutdownServiceTests.cs (1)
172Layout = new LayoutConfiguration { LayoutPath = versionRoot.FullName }
ProfileCaptureServiceTests.cs (2)
128Layout = new LayoutConfiguration { LayoutPath = layoutRoot.FullName } 161Layout = new LayoutConfiguration { LayoutPath = layoutRoot.FullName }
Projects\DotNetAppHostProjectTests.cs (4)
114Layout = layout, 784Layout = layout, 2583Layout = layout, 4831Layout = 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); 76Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 90Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 106Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", installed], 129var layout = bundle.Layout!; 191Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", cliPath], factory.LastArguments!); 192Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.LayoutPath!)); 282var root = bundle.Layout!.LayoutPath!; 293bundle.Layout.Components.Tray = null; 296File.Delete(bundle.Layout.GetTrayPath()!); 341Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 368Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 385var root = bundle.Layout!.LayoutPath!; 437var root = bundle.Layout!.LayoutPath!; 497Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 568bundle.Layout!.Components.Tray = WindowsTrayPayload.ExecutablePath; 569WindowsTrayTestPayload.Create(Path.Combine(bundle.Layout.LayoutPath!, "tray"), 596Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 640var root = bundle.Layout!.LayoutPath!; 652File.Copy(typeof(TrayCommandTests).Assembly.Location, bundle.Layout.GetTrayPath()!, overwrite: true);
Utils\CliTestHelper.cs (2)
907return CreateLayoutLease?.Invoke() ?? (Layout is null ? null : new BundleLayoutLease(Layout, lease: null));