1 instantiation of NullLogger
Microsoft.Extensions.Logging.Abstractions (1)
915 references to NullLogger
aspire (16)
Aspire.Cli.Tests (387)
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)
425var manager = new UnixCertificateManager(NullLogger.Instance, environment, new Aspire.Shared.TemporaryStorage(), nssDbOverride: null, startInfo =>
471var manager = new UnixCertificateManager(NullLogger.Instance, environment, new Aspire.Shared.TemporaryStorage(), nssDbOverride: null, startInfo =>
505var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage());
575var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage());
610var manager = new UnixCertificateManager(NullLogger.Instance, environment, nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage());
685return new UnixCertificateManager(NullLogger.Instance, environment, new Aspire.Shared.TemporaryStorage(), nssDbOverride);
Commands\AddCommandTests.cs (50)
190var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
192[new PackageMapping("Aspire.Hosting.*", PackageSources.NuGetOrg)], cache, new TestFeatures(), NullLogger.Instance)
407[new PackageMapping("Aspire*", "https://example.test/first")], cache, new TestFeatures(), NullLogger.Instance);
409[new PackageMapping("Aspire*", "https://example.test/second")], cache, new TestFeatures(), NullLogger.Instance);
1670PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
1671PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
1742PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
1743PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance)
1829PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
1830PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, [new PackageMapping("Aspire*", "stable")], stableCache, new TestFeatures(), NullLogger.Instance)
1924PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
1925PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
2055PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
2056PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance)
2197PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
2198PackageChannel.CreateExplicitChannel("test-hive", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "test-hive")], explicitCache, new TestFeatures(), NullLogger.Instance)
2695NullLogger.Instance);
3602var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
3605[new PackageMapping("Aspire.Hosting.*", feed)], cache, new TestFeatures(), NullLogger.Instance)
3657var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
3705var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
3753var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
3756var explicitChannel = PackageChannel.CreateExplicitChannel("preview", PackageChannelQuality.Prerelease, mappings, fakeCache, new TestFeatures(), NullLogger.Instance);
3809var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
3810var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], fakeCache, new TestFeatures(), NullLogger.Instance);
3846var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
3847var stagingChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], cache, new TestFeatures(), NullLogger.Instance);
3848var dailyChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], cache, new TestFeatures(), NullLogger.Instance);
3849var prChannel = PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], cache, new TestFeatures(), NullLogger.Instance);
3891NullLogger.Instance);
3994PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
3997PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
3998PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion),
3999PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], prCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion)
4065PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
4067[new PackageMapping("Aspire*", stagingSource)], stagingCache, new TestFeatures(), NullLogger.Instance)
4137PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance),
4138PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance)
4631PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4690PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4741PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4782NullLogger.Instance,
4854PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4900PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4948PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
4995PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
5044PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
5102PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
5156PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
5202PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
Commands\InitCommandTests.cs (8)
99var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1374var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance);
1380features: new TestFeatures(), NullLogger.Instance);
1440var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1778var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2124var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2553var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2677features: new TestFeatures(), NullLogger.Instance);
Commands\NewCommandTests.cs (12)
400var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance);
401var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
478var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance);
555var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance);
1315NullLogger.Instance);
1360NullLogger.Instance);
1951var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance);
2148var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2223var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2277var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
2395var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance);
3771var 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)
196new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
312new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
543new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
645}, new TestFeatures(), NullLogger.Instance, cliDownloadBaseUrl: "https://example.invalid/cli")
Commands\UpdateCommandTests.cs (34)
346NullLogger.Instance,
645NullLogger.Instance,
724NullLogger.Instance,
801NullLogger.Instance,
967NullLogger.Instance,
1045NullLogger.Instance,
1242NullLogger.Instance,
1246[PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance), prChannel]);
1818var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1819var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1883var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1884var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
1937var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
1938var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
2004var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
2005var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
2069var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
2131var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2290PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance),
2355PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance),
2356PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance),
2589var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2590var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2591var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
2592var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
3266var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
3267var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
3268var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
3269var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance);
3282channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance));
3289channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance));
3560var stableChannel = new PackageChannel("stable", PackageChannelQuality.Stable, null, null!, null!, NullLogger.Instance);
3561var dailyChannel = new PackageChannel("daily", PackageChannelQuality.Prerelease, null, null!, null!, NullLogger.Instance);
3889NullLogger.Instance,
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (4)
34private static PackageChannel CreateChannel(PackageMapping[] mappings) => PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
699var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1169new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1784new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Interaction\ConsoleInteractionServiceTests.cs (4)
84var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
87[new PackageMapping("Aspire.Hosting.*", source)], cache, new TestFeatures(), NullLogger.Instance)
207var defaultChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
210[new PackageMapping("Aspire*", source)], cache, new TestFeatures(), NullLogger.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));
NuGet\NuGetConfigurationTests.cs (8)
37new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
63new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
94new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
114new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
276new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
339new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
384new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
414new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
Packaging\PackageChannelTests.cs (36)
68new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
127var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
147var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
167var channel = PackageChannel.CreateExplicitChannel("pr-10981", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
187var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance, configureGlobalPackagesFolder: true);
203var channel = PackageChannel.CreateExplicitChannel("empty", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
226NullLogger.Instance,
260NullLogger.Instance,
295NullLogger.Instance,
352NullLogger.Instance,
391NullLogger.Instance,
441NullLogger.Instance);
465var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
523var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion);
571var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion);
600NullLogger.Instance,
629var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
674NullLogger.Instance);
715NullLogger.Instance);
760NullLogger.Instance);
915NullLogger.Instance,
946NullLogger.Instance,
970var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
986var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
1002var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
1018var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
1029var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
1043var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, [], cache, new TestFeatures(), NullLogger.Instance);
1060new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1082var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
1099var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
1114var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance);
1130var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance);
1149var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance);
1159var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
1177return 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)
520}, nugetCache, new TestFeatures(), NullLogger.Instance);
526}, nugetCache, new TestFeatures(), NullLogger.Instance);
528var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance);
613}, nugetCache, new TestFeatures(), NullLogger.Instance);
657}, nugetCache, new TestFeatures(), NullLogger.Instance);
703}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\GuestAppHostProjectTests.cs (12)
80new NativeAppHostServerProject(path, executable, new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance))
1138var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
1655features: new TestFeatures(), NullLogger.Instance);
1721features: new TestFeatures(), NullLogger.Instance);
1779features: new TestFeatures(), NullLogger.Instance);
1839NullLogger.Instance);
1893NullLogger.Instance);
2326new NativeAppHostServerProject(path, executable, new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance))
2454? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance)
2455: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance);
2499var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
2589var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\NativeAppHostServerProjectTests.cs (8)
119Path.Combine(workspace.Path, "missing"), new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance));
128using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance);
151using var project = new NativeAppHostServerProject(workspace.Path, executable, new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance);
190using (var project = new NativeAppHostServerProject(workspace.Path, executable, factory, new Aspire.Shared.TemporaryStorage(), NullLogger.Instance))
239using var project = new NativeAppHostServerProject(workspace.Path, executable, processes, new Aspire.Shared.TemporaryStorage(), NullLogger.Instance);
272using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, new Aspire.Shared.TemporaryStorage(), NullLogger.Instance)
341using var project = new NativeAppHostServerProject(workspace.Path, executable, factory, new Aspire.Shared.TemporaryStorage(), NullLogger.Instance)
449new TestProcessExecutionFactory(), new Aspire.Shared.TemporaryStorage(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (41)
254NullLogger.Instance);
277NullLogger.Instance);
384new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
396CreateContextWithIdentityChannel(channelName, sdkVersion), NullLogger.Instance);
1046NullLogger.Instance);
1091NullLogger.Instance);
1142NullLogger.Instance);
1185NullLogger.Instance);
1192NullLogger.Instance);
1408NullLogger.Instance,
1526NullLogger.Instance,
1922features: new TestFeatures(), NullLogger.Instance);
1952NullLogger.Instance,
2010features: new TestFeatures(), NullLogger.Instance);
2044NullLogger.Instance);
2080NullLogger.Instance);
2134features: new TestFeatures(), NullLogger.Instance);
2203features: new TestFeatures(), NullLogger.Instance);
2225features: new TestFeatures(), NullLogger.Instance);
2247features: new TestFeatures(), NullLogger.Instance);
2332"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
2359"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
2417NullLogger.Instance);
2432channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
2726features: new TestFeatures(), NullLogger.Instance);
2775features: new TestFeatures(), NullLogger.Instance);
2829features: new TestFeatures(), NullLogger.Instance);
2875features: new TestFeatures(), NullLogger.Instance);
2966features: new TestFeatures(), NullLogger.Instance);
3027features: new TestFeatures(), NullLogger.Instance);
3189logger: NullLogger.Instance);
3287logger: NullLogger.Instance,
3457logger: NullLogger.Instance);
3597logger: NullLogger.Instance);
3718NullLogger.Instance);
3803NullLogger.Instance);
3880NullLogger.Instance);
3944NullLogger.Instance);
4210features: new TestFeatures(), NullLogger.Instance);
4385NullLogger.Instance,
4585NullLogger.Instance);
Projects\ProjectUpdaterNuGetConfigurationTests.cs (12)
359provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
488provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
648provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
844provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance,
1102provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1160provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1273provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1447provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1581provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1847provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1916provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
1994provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.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 (38)
51new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
97new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
140new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
183new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance,
227new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
319features: new TestFeatures(), NullLogger.Instance);
459}, new TestFeatures(), NullLogger.Instance);
492var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
519var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
531features: new TestFeatures(), NullLogger.Instance);
594NullLogger.Instance);
643var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance);
650NullLogger.Instance,
689NullLogger.Instance,
724NullLogger.Instance,
777var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
838}, new TestFeatures(), NullLogger.Instance);
845NullLogger.Instance,
900}, new TestFeatures(), NullLogger.Instance);
907NullLogger.Instance,
915NullLogger.Instance,
923NullLogger.Instance,
963NullLogger.Instance,
1006NullLogger.Instance,
1042NullLogger.Instance,
1077NullLogger.Instance,
1124NullLogger.Instance,
1132NullLogger.Instance,
1170NullLogger.Instance,
1226}, new TestFeatures(), NullLogger.Instance);
1233NullLogger.Instance,
1275var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
1285NullLogger.Instance);
1351features: new TestFeatures(), NullLogger.Instance);
1390features: new TestFeatures(), NullLogger.Instance);
1435features: new TestFeatures(), NullLogger.Instance);
1485features: new TestFeatures(), NullLogger.Instance);
1549new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
Testing\TestRunReporterTests.cs (3)
326OutputFormat.Json, new FakeTimeProvider(), NullLogger.Instance);
404OutputFormat.Json, new FakeTimeProvider(), NullLogger.Instance);
734OutputFormat.Table, new FakeTimeProvider(new DateTimeOffset(2026, 10, 31, 6, 0, 0, TimeSpan.Zero)), NullLogger.Instance);
Utils\DcpConnectionHealthCheckTests.cs (3)
154CertificateManager.Create(NullLogger.Instance, new HostEnvironment(), nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage()),
521CertificateManager.Create(NullLogger.Instance, new HostEnvironment(), nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage()),
666var certificateManager = CertificateManager.Create(NullLogger.Instance, new HostEnvironment(), nssDbOverride: null, temporaryStorage: new Aspire.Shared.TemporaryStorage());
Aspire.Dashboard (5)
Aspire.Dashboard.Components.Tests (16)
Aspire.Dashboard.Playwright.Tests (1)
Aspire.Dashboard.Tests (41)
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.EntraId.Tests (5)
LocalDeveloperCertificateProvisioningTests.cs (3)
33Assert.Equal(initialChecksum, await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken));
37Assert.Equal(initialChecksum, await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken));
47var renewedChecksum = await BicepUtilities.GetCurrentChecksumAsync(entra.Resource, section, builder.ExecutionContext, NullLogger.Instance, TestContext.Current.CancellationToken);
Aspire.Hosting.Azure.Kubernetes.Tests (8)
Aspire.Hosting.Azure.Tests (120)
AzureEnvironmentResourceExtensionsTests.cs (65)
112Logger = NullLogger.Instance,
184Logger = NullLogger.Instance,
309Logger = NullLogger.Instance,
657Logger = NullLogger.Instance,
711Logger = NullLogger.Instance,
1096Logger = NullLogger.Instance,
1177Logger = NullLogger.Instance,
1261Logger = NullLogger.Instance,
1530Logger = NullLogger.Instance,
1594Logger = NullLogger.Instance,
1655Logger = NullLogger.Instance,
1716Logger = NullLogger.Instance,
1851Logger = NullLogger.Instance,
1909Logger = NullLogger.Instance,
1960Logger = NullLogger.Instance,
1972Logger = NullLogger.Instance,
2056Logger = NullLogger.Instance,
2140Logger = NullLogger.Instance,
2234Logger = NullLogger.Instance,
2305Logger = NullLogger.Instance,
2383Logger = NullLogger.Instance,
2397Logger = NullLogger.Instance,
2462Logger = NullLogger.Instance,
2526Logger = NullLogger.Instance,
2580Logger = NullLogger.Instance,
2640Logger = NullLogger.Instance,
2717Logger = NullLogger.Instance,
2731Logger = NullLogger.Instance,
2794Logger = NullLogger.Instance,
2811Logger = NullLogger.Instance,
2892Logger = NullLogger.Instance,
2938Logger = NullLogger.Instance,
2991Logger = NullLogger.Instance,
3005Logger = NullLogger.Instance,
3058Logger = NullLogger.Instance,
3131Logger = NullLogger.Instance,
3184Logger = NullLogger.Instance,
3244Logger = NullLogger.Instance,
3305Logger = NullLogger.Instance,
3375Logger = NullLogger.Instance,
3436Logger = NullLogger.Instance,
3505Logger = NullLogger.Instance,
3562Logger = NullLogger.Instance,
3625Logger = NullLogger.Instance,
3696Logger = NullLogger.Instance,
3751Logger = NullLogger.Instance,
3791Logger = NullLogger.Instance,
3865Logger = NullLogger.Instance,
3913Logger = NullLogger.Instance,
3969Logger = NullLogger.Instance,
4116Logger = NullLogger.Instance,
4195Logger = NullLogger.Instance,
4267Logger = NullLogger.Instance,
4347Logger = NullLogger.Instance,
4421Logger = NullLogger.Instance,
4473Logger = NullLogger.Instance,
4519Logger = NullLogger.Instance,
4565Logger = NullLogger.Instance,
4633Logger = NullLogger.Instance,
4872Logger = NullLogger.Instance,
4924Logger = NullLogger.Instance,
4971Logger = NullLogger.Instance,
5019Logger = NullLogger.Instance,
5157Logger = NullLogger.Instance,
5544NullLogger.Instance,
AzureSandboxesTests.cs (43)
97NullLogger.Instance,
144NullLogger.Instance,
554var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance);
601NullLogger.Instance);
678var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
708var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1082NullLogger.Instance,
1114NullLogger.Instance,
1152NullLogger.Instance,
1221NullLogger.Instance,
1268NullLogger.Instance,
1341var client = new AzureDevComputeClient(new HttpClient(handler), credential, NullLogger.Instance, TimeSpan.Zero);
1365NullLogger.Instance,
1415var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1437var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1457var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1482var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance, TimeSpan.Zero);
1505NullLogger.Instance,
1528NullLogger.Instance,
1554NullLogger.Instance,
1580NullLogger.Instance,
1603NullLogger.Instance,
1665NullLogger.Instance,
1685var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1707var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1730var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1798var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1861var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1912var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
1965var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
2017var client = new AzureDevComputeClient(new HttpClient(handler), new RecordingTokenCredential(), NullLogger.Instance);
2415NullLogger.Instance,
2431NullLogger.Instance,
2717NullLogger.Instance,
2840NullLogger.Instance,
2999NullLogger.Instance,
3034NullLogger.Instance,
3071NullLogger.Instance,
3226NullLogger.Instance,
3281NullLogger.Instance,
3314NullLogger.Instance,
3378NullLogger.Instance,
3415NullLogger.Instance,
BicepUtilitiesTests.cs (7)
193resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance));
200resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance);
661var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
677var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
699var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
724var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
762var 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.Docker.Tests (2)
Aspire.Hosting.Dotnet.Tests (25)
DotnetProjectBuildCoordinatorTests.cs (23)
596NullLogger.Instance,
715NullLogger.Instance,
866NullLogger.Instance,
869NullLogger.Instance,
958build.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
1091var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
1130NullLogger.Instance,
1183NullLogger.Instance,
1229var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
1247var unifiedPath = await unified.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
1248var individualPath = await individual.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
1473buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
1980NullLogger.Instance,
3246NullLogger.Instance,
3295buildResource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken)));
3441NullLogger.Instance,
3474NullLogger.Instance,
3507NullLogger.Instance,
3681() => buildResource.WriteBuildProjectAsync(NullLogger.Instance, canceledCts.Token));
3683var buildProjectPath = await buildResource.WriteBuildProjectAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
4244Logger = NullLogger.Instance,
4796var path = await resource.GetBuildTargetPathAsync(NullLogger.Instance, TestContext.Current.CancellationToken);
5245.BuildAsync(executionContext, NullLogger.Instance, cancellationToken);
Aspire.Hosting.EntityFrameworkCore.Tests (8)
Aspire.Hosting.Foundry.Tests (10)
Aspire.Hosting.Go.Tests (2)
Aspire.Hosting.Kubernetes.Tests (7)
Aspire.Hosting.MongoDB.Tests (2)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Native.Client (1)
Aspire.Hosting.Native.Core.Tests (29)
NativeSocketIsolationTests.cs (7)
28using var listener = new NativeRpcListener(new IPEndPoint(IPAddress.Loopback, 0), Token, NullLogger.Instance,
267Assert.Throws<IOException>(() => new NativeRpcListener(new UnixDomainSocketEndPoint(directory.SocketPath), Token, NullLogger.Instance));
281var first = new NativeRpcListener(endPoint, Token, NullLogger.Instance);
285Assert.Throws<SocketException>(() => new NativeRpcListener(endPoint, Token, NullLogger.Instance));
293using var replacement = new NativeRpcListener(endPoint, Token, NullLogger.Instance);
309using var listener = new NativeRpcListener(endPoint, Token, NullLogger.Instance);
318using var replacement = new NativeRpcListener(endPoint, Token, NullLogger.Instance);
Aspire.Hosting.Native.Server (4)
Rpc\NativeRpcConnection.cs (2)
242: this(token, server, ownsServer: false, languages, options, NullLogger.Instance)
253NativeServerOptions options) : this(token, server, ownsServer, languages, options, NullLogger.Instance)
Aspire.Hosting.PostgreSQL.Tests (2)
Aspire.Hosting.Radius (4)
Aspire.Hosting.Radius.Tests (27)
Publishing\RadiusDeployParametersTests.cs (14)
52new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance);
78new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance);
90await Verify(BicepPostProcessor.CompileBicep(options, "myenv", NullLogger.Instance), "bicep");
109new ResourceTypeMapper(NullLogger.Instance), NullLogger.Instance);
123await Assert.ThrowsAsync<MissingParameterValueException>(() => step.WriteDeployParametersFileAsync(new TestFileSystemService().TempDirectory, NullLogger.Instance, default));
128using var parametersFile = await step.WriteDeployParametersFileAsync(new TestFileSystemService().TempDirectory, NullLogger.Instance, default);
130await Verify(BicepPostProcessor.CompileBicep(options, "myenv", NullLogger.Instance), "bicep")
180var parametersFile = await step.WriteDeployParametersFileAsync(fileSystem.TempDirectory, NullLogger.Instance, default);
236var parametersFile = await step.WriteDeployParametersFileAsync(fileSystem.TempDirectory, NullLogger.Instance, default);
265var parametersFile = await step.WriteDeployParametersFileAsync(new TestFileSystemService().TempDirectory, NullLogger.Instance, default);
285() => step.WriteDeployParametersFileAsync(new TestFileSystemService().TempDirectory, NullLogger.Instance, default));
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 (3)
Aspire.Hosting.RemoteHost.Tests (8)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (86)
ExecutionConfigurationGathererTests.cs (32)
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);
266await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
289await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
309await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
333await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
356await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
389await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
391var result = await context.ResolveAsync(consumer, NullLogger.Instance, builder.ExecutionContext);
407NullLogger.Instance,
434await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext);
473await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
501await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
531await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
559await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
581await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
607await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
641await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
671await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
707await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
767await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
829await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
864await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
898await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
928await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
948await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
971await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
1015await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
ProjectResourceBuilderExtensionTests.cs (12)
160.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
188.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
190.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
211.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
253.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
341.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
345.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext);
389.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
424.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
461.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
498.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
500.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 (4)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (8)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Maui (3)
Microsoft.Maui.Maps (2)
NativeIntegrations.AppHost.Sample (1)
NativeIntegrations.Provider (1)
NativeIntegrations.Redis.Provider (1)