12 writes to Layout
Aspire.Cli.Tests (12)
Commands\DashboardRunCommandTests.cs (1)
707bundleService.Layout = layout;
Commands\StopCommandTests.cs (1)
1540options.BundleServiceFactory = _ => new TestBundleService(isBundle: true) { Layout = layout };
Commands\TrayCommandTests.cs (2)
352bundle.Layout = null; 614Layout = 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)
154Layout = layout, 824Layout = layout, 2623Layout = layout, 4871Layout = layout
Projects\NativeAppHostServerProjectTests.cs (1)
39Layout = new LayoutConfiguration { LayoutPath = workspace.Path }
32 references to Layout
Aspire.Cli.Tests (32)
Commands\TrayCommandTests.cs (30)
32bundle.Layout!.Components.Tray = LinuxTrayPayload.ExecutablePath; 33var directory = Path.GetDirectoryName(bundle.Layout.GetTrayPath()!)!; 39Assert.Equal(bundle.Layout.GetTrayPath(), factory.LastFileName); 41? ["start", "--cli", cli, "--bundle-root", bundle.Layout.LayoutPath!, "--startup-cli", cli] 53bundle.Layout!.Components.Tray = LinuxTrayPayload.ExecutablePath; 54LinuxTrayTestPayload.Create(Path.GetDirectoryName(bundle.Layout.GetTrayPath()!)!, 77bundle.Layout!.Components.Tray = LinuxTrayPayload.ExecutablePath; 78LinuxTrayTestPayload.Create(Path.GetDirectoryName(bundle.Layout.GetTrayPath()!)!, 85Assert.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); 140Assert.Equal(["start", "--cli", packagedCli, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 154Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!], factory.LastArguments); 170Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", installed], 193var layout = bundle.Layout!; 255Assert.Equal(["start", "--cli", cliPath, "--bundle-root", bundle.Layout!.LayoutPath!, "--startup-cli", cliPath], factory.LastArguments!); 256Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout.LayoutPath!)); 348var root = bundle.Layout!.LayoutPath!; 359bundle.Layout.Components.Tray = null; 362File.Delete(bundle.Layout.GetTrayPath()!); 407Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 434Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 451var root = bundle.Layout!.LayoutPath!; 503var root = bundle.Layout!.LayoutPath!; 563Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 634bundle.Layout!.Components.Tray = WindowsTrayPayload.ExecutablePath; 635WindowsTrayTestPayload.Create(Path.Combine(bundle.Layout.LayoutPath!, "tray"), 662Assert.False(BundleVersionLease.HasActiveLease(bundle.Layout!.LayoutPath!)); 706var root = bundle.Layout!.LayoutPath!; 718File.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));