715 references to Instance
aspire (13)
Aspire.Cli.Tests (281)
Backchannel\AppHostAuxiliaryBackchannelTests.cs (2)
152return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, timeout, CancellationToken.None).DefaultTimeout();
155return await AppHostAuxiliaryBackchannel.CreateFromSocketAsync(new TestAppHostSocket("socket.hash1"), isInScope: true, NullLogger.Instance, new ProfilingTelemetry(new ConfigurationBuilder().Build()), clientSocket, CancellationToken.None).DefaultTimeout();
Certificates\UnixCertificateManagerTests.cs (6)
423var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, startInfo =>
469var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, startInfo =>
503var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null);
573var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null);
608var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null);
683return new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride);
Commands\AddCommandTests.cs (39)
423PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
424PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
495PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
496PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance)
582PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
583PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, [new PackageMapping("Aspire*", "stable")], stableCache, new TestFeatures(), NullLogger.Instance)
677PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
678PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
788PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
789PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance)
930PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
931PackageChannel.CreateExplicitChannel("test-hive", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "test-hive")], explicitCache, new TestFeatures(), NullLogger.Instance)
2218var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2266var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2314var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2317var explicitChannel = PackageChannel.CreateExplicitChannel("preview", PackageChannelQuality.Prerelease, mappings, fakeCache, new TestFeatures(), NullLogger.Instance);
2370var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2371var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], fakeCache, new TestFeatures(), NullLogger.Instance);
2406var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
2407var stagingChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], cache, new TestFeatures(), NullLogger.Instance);
2408var dailyChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], cache, new TestFeatures(), NullLogger.Instance);
2409var prChannel = PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], cache, new TestFeatures(), NullLogger.Instance);
2454NullLogger.Instance);
2557PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
2560PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
2561PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
2562PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], prCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion)
2631PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
2632PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
3037PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3087PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3137PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3183PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3231PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3278PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3327PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3385PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3439PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
3485PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
Commands\InitCommandTests.cs (8)
48var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1008var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance);
1014features: new TestFeatures(), NullLogger.Instance);
1074var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1412var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1757var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2191var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2315features: new TestFeatures(), NullLogger.Instance);
Commands\NewCommandTests.cs (12)
366var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance);
367var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
444var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance);
521var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance);
1232NullLogger.Instance);
1277NullLogger.Instance);
1823var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance);
2020var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2095var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2149var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2260var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
3582var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Commands\TelemetryCommandTests.cs (10)
455NullLogger.Instance,
514NullLogger.Instance,
611factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None);
628factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None);
642factory, "http://localhost:18888", "wrong-token", NullLogger.Instance, CancellationToken.None);
656factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None);
669factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None);
683factory, "http://localhost:18888", "browser-token", NullLogger.Instance, CancellationToken.None);
704factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None);
724factory, "http://localhost:18888", "my-token", NullLogger.Instance, CancellationToken.None);
Commands\UpdateCommandRepositoryToolsTests.cs (4)
152new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
268new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
483new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
567}, new TestFeatures(), NullLogger.Instance, cliDownloadBaseUrl: "https://example.invalid/cli")
Commands\UpdateCommandTests.cs (32)
346NullLogger.Instance,
593NullLogger.Instance,
672NullLogger.Instance,
749NullLogger.Instance,
915NullLogger.Instance,
993NullLogger.Instance,
1151NullLogger.Instance,
1699var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1700var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1764var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1765var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1818var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1819var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1885var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1886var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1946var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
2008var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2163PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance),
2221PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance),
2222PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance),
2449var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2450var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2451var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2452var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2862var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2863var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2864var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2877channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance));
2884channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance));
3154var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
3155var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
3483NullLogger.Instance,
Mcp\AppHostConnectionSelectionLogicTests.cs (10)
165NullLogger.Instance,
176var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken);
193var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken);
219var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken);
227await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken));
250var selected = await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken);
268await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken));
290NullLogger.Instance,
309NullLogger.Instance,
327await AppHostConnectionHelper.GetSelectedConnectionAsync(monitor, NullLogger.Instance, TestContext.Current.CancellationToken));
Packaging\NuGetConfigMergerTests.cs (2)
29private static PackageChannel CreateChannel(PackageMapping[] mappings) => PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
194var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Packaging\PackageChannelTests.cs (33)
24var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
44var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
64var channel = PackageChannel.CreateExplicitChannel("pr-10981", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
84var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance, configureGlobalPackagesFolder: true);
100var channel = PackageChannel.CreateExplicitChannel("empty", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
123NullLogger.Instance,
157NullLogger.Instance,
198NullLogger.Instance,
237NullLogger.Instance,
287NullLogger.Instance);
311var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
369var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion);
417var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion);
446NullLogger.Instance,
475var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
520NullLogger.Instance);
561NullLogger.Instance);
606NullLogger.Instance);
761NullLogger.Instance,
792NullLogger.Instance,
816var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
832var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
848var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
864var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
875var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
889var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, [], cache, new TestFeatures(), NullLogger.Instance);
912var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
929var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
944var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
960var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
979var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
989var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
1007return PackageChannel.CreateExplicitChannel("local", quality, mappings, cache, features ?? new TestFeatures(), NullLogger.Instance);
Processes\LauncherLivenessMonitorTests.cs (4)
22var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance);
38await using var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance);
62await using (var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance))
81var monitor = LauncherLivenessMonitor.StartIfConfigured(configuration, runCts, TimeProvider.System, NullLogger.Instance);
Projects\AppHostServerProjectTests.cs (6)
476}, nugetCache, new TestFeatures(), NullLogger.Instance);
482}, nugetCache, new TestFeatures(), NullLogger.Instance);
484var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance);
569}, nugetCache, new TestFeatures(), NullLogger.Instance);
613}, nugetCache, new TestFeatures(), NullLogger.Instance);
659}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\GuestAppHostProjectTests.cs (8)
1067var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1459features: new TestFeatures(), NullLogger.Instance);
1515features: new TestFeatures(), NullLogger.Instance);
1572features: new TestFeatures(), NullLogger.Instance);
1941? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance)
1942: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
1986var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2075var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (25)
89Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance));
98Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance));
107Assert.False(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "new-fingerprint", NullLogger.Instance));
116Assert.True(PrebuiltAppHostServer.CanSkipIntegrationRestore(workspace.WorkspaceRoot.FullName, "fingerprint", NullLogger.Instance));
907NullLogger.Instance,
1053features: new TestFeatures(), NullLogger.Instance);
1080NullLogger.Instance,
1129features: new TestFeatures(), NullLogger.Instance);
1175features: new TestFeatures(), NullLogger.Instance);
1229features: new TestFeatures(), NullLogger.Instance);
1251features: new TestFeatures(), NullLogger.Instance);
1275features: new TestFeatures(), NullLogger.Instance);
1369"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1398"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1449NullLogger.Instance);
1464channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1705features: new TestFeatures(), NullLogger.Instance);
1754features: new TestFeatures(), NullLogger.Instance);
1808features: new TestFeatures(), NullLogger.Instance);
1853features: new TestFeatures(), NullLogger.Instance);
1949features: new TestFeatures(), NullLogger.Instance);
2011features: new TestFeatures(), NullLogger.Instance);
2177features: new TestFeatures(), NullLogger.Instance);
2245features: new TestFeatures(), NullLogger.Instance);
2392NullLogger.Instance);
Projects\RepositoryToolUpdaterTests.cs (5)
232var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
289var channel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, [], cache, new TestFeatures(), NullLogger.Instance);
624var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
795? PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)
796: PackageChannel.CreateExplicitChannel(name, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance);
Templating\TemplateNuGetConfigServiceTests.cs (32)
93features: new TestFeatures(), NullLogger.Instance);
229}, new TestFeatures(), NullLogger.Instance);
262var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
289var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
301features: new TestFeatures(), NullLogger.Instance);
364NullLogger.Instance);
413var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance);
420NullLogger.Instance,
459NullLogger.Instance,
494NullLogger.Instance,
547var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
608}, new TestFeatures(), NullLogger.Instance);
615NullLogger.Instance,
670}, new TestFeatures(), NullLogger.Instance);
677NullLogger.Instance,
685NullLogger.Instance,
693NullLogger.Instance,
733NullLogger.Instance,
776NullLogger.Instance,
812NullLogger.Instance,
847NullLogger.Instance,
894NullLogger.Instance,
902NullLogger.Instance,
940NullLogger.Instance,
996}, new TestFeatures(), NullLogger.Instance);
1003NullLogger.Instance,
1045var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1055NullLogger.Instance);
1113features: new TestFeatures(), NullLogger.Instance);
1151features: new TestFeatures(), NullLogger.Instance);
1196features: new TestFeatures(), NullLogger.Instance);
1253features: new TestFeatures(), NullLogger.Instance);
Aspire.Dashboard (5)
Aspire.Dashboard.Components.Tests (10)
Aspire.Dashboard.Playwright.Tests (1)
Aspire.Dashboard.Tests (39)
Model\ApplicationsSelectHelpersTests.cs (9)
57var app = appVMs.GetResource(NullLogger.Instance, "multiple-instanceabc", canSelectGrouping: false, null!);
73var app = appVMs.GetResource(NullLogger.Instance, "dotnet-cli-6a764b7d", canSelectGrouping: true, null!);
107Assert.Same(replica, appVMs.GetResource(NullLogger.Instance, replica.Id!.InstanceId, canSelectGrouping, null!));
122var app = appVMs.GetResource(NullLogger.Instance, "dotnet-cli-6a764b7d", canSelectGrouping: false, null!);
177var app = appVMs.GetResource(NullLogger.Instance, "singleton", canSelectGrouping: false, null!);
194var app = appVMs.GetResource(NullLogger.Instance, "singleton-", canSelectGrouping: false, null!);
215var app = appVMs.GetResource(NullLogger.Instance, name, canSelectGrouping: false, null!);
327var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: false, null!);
364var app = appVMs.GetResource(NullLogger.Instance, "app", canSelectGrouping: true, null!);
Aspire.Hosting (10)
Aspire.Hosting.Azure.Kubernetes.Tests (8)
Aspire.Hosting.Azure.Tests (114)
AzureEnvironmentResourceExtensionsTests.cs (62)
358Logger = NullLogger.Instance,
412Logger = NullLogger.Instance,
772Logger = NullLogger.Instance,
853Logger = NullLogger.Instance,
937Logger = NullLogger.Instance,
1206Logger = NullLogger.Instance,
1270Logger = NullLogger.Instance,
1331Logger = NullLogger.Instance,
1392Logger = NullLogger.Instance,
1527Logger = NullLogger.Instance,
1585Logger = NullLogger.Instance,
1636Logger = NullLogger.Instance,
1648Logger = NullLogger.Instance,
1732Logger = NullLogger.Instance,
1816Logger = NullLogger.Instance,
1910Logger = NullLogger.Instance,
1981Logger = NullLogger.Instance,
2059Logger = NullLogger.Instance,
2073Logger = NullLogger.Instance,
2138Logger = NullLogger.Instance,
2202Logger = NullLogger.Instance,
2256Logger = NullLogger.Instance,
2316Logger = NullLogger.Instance,
2393Logger = NullLogger.Instance,
2407Logger = NullLogger.Instance,
2470Logger = NullLogger.Instance,
2487Logger = NullLogger.Instance,
2568Logger = NullLogger.Instance,
2614Logger = NullLogger.Instance,
2667Logger = NullLogger.Instance,
2681Logger = NullLogger.Instance,
2734Logger = NullLogger.Instance,
2807Logger = NullLogger.Instance,
2860Logger = NullLogger.Instance,
2920Logger = NullLogger.Instance,
2981Logger = NullLogger.Instance,
3051Logger = NullLogger.Instance,
3112Logger = NullLogger.Instance,
3181Logger = NullLogger.Instance,
3238Logger = NullLogger.Instance,
3301Logger = NullLogger.Instance,
3372Logger = NullLogger.Instance,
3427Logger = NullLogger.Instance,
3467Logger = NullLogger.Instance,
3541Logger = NullLogger.Instance,
3589Logger = NullLogger.Instance,
3645Logger = NullLogger.Instance,
3792Logger = NullLogger.Instance,
3871Logger = NullLogger.Instance,
3943Logger = NullLogger.Instance,
4023Logger = NullLogger.Instance,
4097Logger = NullLogger.Instance,
4149Logger = NullLogger.Instance,
4195Logger = NullLogger.Instance,
4241Logger = NullLogger.Instance,
4309Logger = NullLogger.Instance,
4548Logger = NullLogger.Instance,
4600Logger = NullLogger.Instance,
4647Logger = NullLogger.Instance,
4695Logger = NullLogger.Instance,
4833Logger = NullLogger.Instance,
5220NullLogger.Instance,
AzureSandboxesTests.cs (44)
64NullLogger.Instance,
111NullLogger.Instance,
521var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance);
568NullLogger.Instance);
645var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
675var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1049NullLogger.Instance,
1081NullLogger.Instance,
1119NullLogger.Instance,
1188NullLogger.Instance,
1235NullLogger.Instance,
1308var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance, TimeSpan.Zero);
1332NullLogger.Instance,
1382var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1404var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1424var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1449var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1472NullLogger.Instance,
1495NullLogger.Instance,
1521NullLogger.Instance,
1547NullLogger.Instance,
1570NullLogger.Instance,
1592NullLogger.Instance,
1616NullLogger.Instance,
1636var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1658var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1681var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1749var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1812var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1863var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1916var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1968var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
2366NullLogger.Instance,
2382NullLogger.Instance,
2668NullLogger.Instance,
2791NullLogger.Instance,
2950NullLogger.Instance,
2985NullLogger.Instance,
3022NullLogger.Instance,
3177NullLogger.Instance,
3232NullLogger.Instance,
3265NullLogger.Instance,
3329NullLogger.Instance,
3366NullLogger.Instance,
BicepUtilitiesTests.cs (5)
465var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
481var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
503var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
528var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
566var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
Aspire.Hosting.Blazor (1)
Aspire.Hosting.Blazor.Tests (8)
Aspire.Hosting.Browsers.Tests (6)
BrowserPageSessionTests.cs (6)
56new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
114new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
154new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
184new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
222new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
300new BrowserConnectionDiagnosticsLogger("session-0001", NullLogger.Instance),
Aspire.Hosting.DevTunnels.Tests (11)
DevTunnelAccessStatusTests.cs (8)
16Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
26Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
36Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
49Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
61Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
74Assert.Equal("Allowed", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
87Assert.Equal("Denied", status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
104Assert.Equal(expected, status.LogAnonymousAccessPolicy(NullLogger.Instance, s_now));
Aspire.Hosting.Dotnet.Tests (26)
DotnetProjectBuildCoordinatorTests.cs (22)
372NullLogger.Instance,
424NullLogger.Instance,
515NullLogger.Instance,
518NullLogger.Instance,
607build.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
733var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
772NullLogger.Instance,
825NullLogger.Instance,
871var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
889var unifiedPath = await unified.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
890var individualPath = await individual.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
1111buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
2241NullLogger.Instance,
2290buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
2436NullLogger.Instance,
2469NullLogger.Instance,
2502NullLogger.Instance,
2676() => buildResource.WriteBuildProjectAsync(NullLogger.Instance, canceledCts.Token));
2678var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
3159Logger = NullLogger.Instance,
3706var path = await resource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
4069.BuildAsync(executionContext, NullLogger.Instance, cancellationToken);
Aspire.Hosting.EntityFrameworkCore.Tests (7)
Aspire.Hosting.Foundry.Tests (10)
Aspire.Hosting.Kubernetes.Tests (4)
Aspire.Hosting.MongoDB.Tests (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.Radius (4)
Aspire.Hosting.Radius.Tests (16)
Publishing\SealedSecretPublishTests.cs (3)
156copyMethod.Invoke(null, [options, outputDir, NullLogger.Instance]);
184copyMethod.Invoke(null, [BuildOptionsForStore("db-creds", manifestA), outputDir, NullLogger.Instance]);
188copyMethod.Invoke(null, [BuildOptionsForStore("cache-creds", manifestB), outputDir, NullLogger.Instance]);
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (77)
ExecutionConfigurationGathererTests.cs (31)
39await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
62await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
82await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
106await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
136.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
138.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
167await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
190await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
210await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
234await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
257await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
290await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
292var result = await context.ResolveAsync(consumer, NullLogger.Instance, builder.ExecutionContext);
314await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
353await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
381await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
411await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
439await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
461await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
487await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
521await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
551await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
587await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
647await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
709await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
744await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
778await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
808await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
828await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
851await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
895await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
ProjectResourceBuilderExtensionTests.cs (12)
159.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
187.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
189.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
210.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
252.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
340.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
344.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
388.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
423.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
460.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
497.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
499.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
Terminals\ResourceAspireTerminalTests.cs (7)
37await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", host.SocketPath, NullLogger.Instance).Handle;
57await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", host.SocketPath, NullLogger.Instance).Handle;
71await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", missingSocket, NullLogger.Instance).Handle;
81var terminal = new ResourceAspireTerminal("resource:test:0", "test", Path.Combine(_socketDirectory, "unused.sock"), NullLogger.Instance).Handle;
94await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle;
111await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle;
131await using var terminal = new ResourceAspireTerminal("resource:test:0", "test", socketPath, NullLogger.Instance).Handle;
VersionChecking\PackageUpdateHelpersTests.cs (5)
56var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
104var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
152var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(10, prerelease: ["dev"]), packages);
166var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
214var latestVersion = PackageUpdateHelpers.GetNewerVersion(NullLogger.Instance, new SemVersion(1), packages);
Aspire.Hosting.TestUtilities (3)
Aspire.Hosting.Valkey.Tests (2)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.TerminalHost.Tests (2)
Aspire.TestUtilities (1)
Microsoft.AspNetCore.Components.AI (3)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Tests (9)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (2)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Maui (3)
Microsoft.Maui.Maps (2)