464 instantiations of TestFeatures
Aspire.Cli.Tests (464)
Commands\AddCommandTests.cs (51)
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); 1114var nuGetClient = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.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) 2694new TestFeatures(), 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); 3890new TestFeatures(), 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) 4781new TestFeatures(), 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\ConfigSourceCommandTests.cs (2)
398[Aspire.Cli.Packaging.PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 1414[Aspire.Cli.Packaging.PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)])
Commands\GoAppHostToolingCheckTests.cs (1)
567new(new TestFeatures());
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\NewCommandChannelResolutionTests.cs (5)
85var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 646var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 662features: new TestFeatures(), 712features: new TestFeatures(), 737features: new TestFeatures(),
Commands\NewCommandLocalTemplateTests.cs (1)
1074new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
Commands\NewCommandLocalTemplateTests.NuGetValues.cs (1)
125new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance)
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
494var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 507features: new TestFeatures(), 536features: new TestFeatures(),
Commands\NewCommandTests.cs (22)
87var features = new TestFeatures(); 426var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 427var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 504var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 581var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 936var features = new TestFeatures(); 1046options.FeatureFlagsFactory = _ => new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 1069var features = new TestFeatures(); 1155var features = new TestFeatures(); 1223var features = new TestFeatures(); 1340new TestFeatures(), 1385new TestFeatures(), 1427var features = new TestFeatures(); 1631var features = new TestFeatures(); 1668var features = new TestFeatures(); 2009var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 2206var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2281var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2335var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2453var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2610var features = new TestFeatures(); 3829var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Commands\RunCommandTests.cs (1)
4424var featuresFactory = (IServiceProvider sp) => new TestFeatures()
Commands\StartCommandTests.cs (3)
658var features = new TestFeatures().SetFeature(KnownFeatures.GitWorktreeIsolationEnabled, true); 660Assert.False(AppHostLauncher.ResolveIsolated(command.Parse("start"), appHostFile, new TestFeatures())); 693var features = new TestFeatures().SetFeature(KnownFeatures.GitWorktreeIsolationEnabled, true);
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 (23)
345features: new TestFeatures(), 644features: new TestFeatures(), 723features: new TestFeatures(), 800features: new TestFeatures(), 966features: new TestFeatures(), 1044features: new TestFeatures(), 1241features: new TestFeatures(), 1246[PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance), prChannel]); 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)); 3888features: new TestFeatures(),
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (1)
136new TestFeatures(),
Configuration\KnownFeaturesTests.cs (9)
67var features = new TestFeatures().SetFeature(KnownFeatures.ExperimentalHostingIntegrations, cliEnabled); 92var features = new TestFeatures(); 101var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 110var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 119var features = new TestFeatures(); 128var features = new TestFeatures(); 137var features = new TestFeatures(); 146var features = new TestFeatures(); 155var features = new TestFeatures();
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (1)
25var features = new TestFeatures();
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);
DotNet\DotNetCliRunnerTests.cs (2)
314provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 462new 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\MockPackagingService.cs (1)
28return Task.FromResult<IEnumerable<PackageChannel>>([PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]);
NuGet\BundleNuGetServiceTests.cs (2)
68new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 179new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
NuGet\NuGetClientTests.cs (31)
84var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance) 305new TestFeatures(), 333new TestFeatures(), 393var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 503var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), logger); 619new TestFeatures(), 658new TestFeatures(), 686new TestFeatures(), 731new TestFeatures(), 790new TestFeatures(), 820new TestFeatures(), 863var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 893var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 925var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 952var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 1039var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance); 1082new TestFeatures(), 1188new TestFeatures(), 1249new TestFeatures(), 1298new TestFeatures(), 1354new TestFeatures(), 1411new TestFeatures(), 1475new TestFeatures(), 1539new TestFeatures(), 1593new TestFeatures(), 1650new TestFeatures(), 1714new TestFeatures(), 1774new TestFeatures(), 1841new TestFeatures(), 1862new TestFeatures(), 1883new TestFeatures(),
NuGet\NuGetConfigurationQueryTests.cs (4)
59new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 121new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 272new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 508new TestFeatures(),
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);
NuGet\NuGetPackageOperationConfigurationTests.cs (1)
232new TestFeatures(),
NuGet\NuGetPackagePrefetcherTests.cs (5)
116var features = new TestFeatures(); 210new TestFeatures(), 349var features = new TestFeatures(); 405var features = new TestFeatures(); 490var features = new TestFeatures();
NuGet\NuGetSignatureVerificationEnablerTests.cs (11)
22var features = new TestFeatures().SetFeature(KnownFeatures.NuGetSignatureVerificationEnabled, false); 39var features = new TestFeatures(); // default is true for this feature 57var features = new TestFeatures(); 78var features = new TestFeatures(); 99var features = new TestFeatures(); // default is true 118using (NuGetSignatureVerificationEnabler.ApplyToCurrentProcess(new TestFeatures(), TestEnvironment.CreateLinux())) 138using (NuGetSignatureVerificationEnabler.ApplyToCurrentProcess(new TestFeatures(), environment)) 159using (NuGetSignatureVerificationEnabler.ApplyToCurrentProcess(new TestFeatures(), environment)) 174var features = new TestFeatures(); 194var features = new TestFeatures(); 216var features = new TestFeatures().SetFeature(KnownFeatures.NuGetSignatureVerificationEnabled, false);
Packaging\IntegrationSourceTests.cs (3)
232[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 413[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 444[PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)])
Packaging\PackageChannelTests.cs (38)
37new FakeNuGetPackageCache(), new TestFeatures(), logger) 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); 225new TestFeatures(), 259new TestFeatures(), 294new TestFeatures(), 351new TestFeatures(), 390new TestFeatures(), 440new TestFeatures(), 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); 599new TestFeatures(), 629var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 673new TestFeatures(), 714new TestFeatures(), 759new TestFeatures(), 886var features = new TestFeatures().SetFeature(KnownFeatures.ShowDeprecatedPackages, true); 914new TestFeatures(), 945new TestFeatures(), 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);
Packaging\PackageSourceOverrideMappingsTests.cs (1)
240new TestFeatures(),
Packaging\PackagingServiceTests.cs (66)
30var features = new TestFeatures(); 69var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 147new TestFeatures(), 207new TestFeatures(), 243new TestFeatures(), 282new TestFeatures(), 311new TestFeatures(), 374var features = new TestFeatures(); 436var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 468var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 498var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 525var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 552var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 578var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 603var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 616var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 643var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 673var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 699var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 728var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 749var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 774var features = new TestFeatures(); 810var features = new TestFeatures(); 833var features = new TestFeatures(); 884executionContext, new FakeNuGetPackageCache(), new TestFeatures(), 912var features = new TestFeatures(); 951var features = new TestFeatures(); 983var features = new TestFeatures(); 1015var features = new TestFeatures(); 1046var features = new TestFeatures(); 1076var features = new TestFeatures(); 1106var features = new TestFeatures(); 1136var features = new TestFeatures(); 1163var features = new TestFeatures(); 1221var features = new TestFeatures(); 1276var features = new TestFeatures(); 1311var features = new TestFeatures(); 1346var features = new TestFeatures(); 1381var features = new TestFeatures(); 1417var features = new TestFeatures(); 1462var features = new TestFeatures(); 1494var features = new TestFeatures(); 1524var features = new TestFeatures(); 1561var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1598new TestFeatures(), 1641new TestFeatures(), 1677new TestFeatures(), 1710new TestFeatures(), 1741new TestFeatures(), 1765new TestFeatures(), 1797new TestFeatures(), 1848var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1884var features = new TestFeatures(); 1936var features = new TestFeatures(); 1987var features = new TestFeatures(); 2043var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2077var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2114var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2145var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2182var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2211var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2240var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2271var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2299var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2329var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2349var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.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\DefaultLanguageDiscoveryTests.cs (18)
15var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 31var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 42var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 63var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 78var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 93var features = new TestFeatures(); 108var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 123var features = new TestFeatures(); 135var features = new TestFeatures(); 163var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 178var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 189var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 200var features = new TestFeatures(); 217var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 243var features = new TestFeatures(); 265var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 275var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 285var features = new TestFeatures();
Projects\GuestAppHostProjectTests.cs (10)
1138var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1655features: new TestFeatures(), NullLogger.Instance); 1721features: new TestFeatures(), NullLogger.Instance); 1779features: new TestFeatures(), NullLogger.Instance); 1838features: new TestFeatures(), 1892features: new TestFeatures(), 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\PrebuiltAppHostServerTests.cs (45)
253features: new TestFeatures(), 262new TestFeatures(), 384new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1045features: new TestFeatures(), 1090features: new TestFeatures(), 1141features: new TestFeatures(), 1184features: new TestFeatures(), 1191features: new TestFeatures(), 1407features: new TestFeatures(), 1466new TestFeatures(), 1513new TestFeatures(), 1525features: new TestFeatures(), 1922features: new TestFeatures(), NullLogger.Instance); 1951features: new TestFeatures(), 2010features: new TestFeatures(), NullLogger.Instance); 2043features: new TestFeatures(), 2079features: new TestFeatures(), 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); 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); 3188features: new TestFeatures(), 3286features: new TestFeatures(), 3296new TestFeatures(), 3456features: new TestFeatures(), 3596features: new TestFeatures(), 3717features: new TestFeatures(), 3802features: new TestFeatures(), 3879features: new TestFeatures(), 3943features: new TestFeatures(), 4210features: new TestFeatures(), NullLogger.Instance); 4384new TestFeatures(), 4584features: new TestFeatures(), 4593new TestFeatures(), 5053new TestFeatures(), 5066new TestFeatures(),
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);
Scaffolding\ChannelReseedTests.cs (2)
92features: new TestFeatures(), 131features: new TestFeatures(),
Scaffolding\DefaultHostingPackagesTests.cs (1)
205features: new TestFeatures(),
Templating\DotNetTemplateFactoryTests.cs (7)
35PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 221var channel = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 259var features = new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 278var features = new TestFeatures(); 297var features = new TestFeatures(); 313var features = new TestFeatures(); 328var features = new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true);
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); 593features: new TestFeatures(), 643var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance); 649new TestFeatures(), 688new TestFeatures(), 723new TestFeatures(), 777var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 838}, new TestFeatures(), NullLogger.Instance); 844features: new TestFeatures(), 900}, new TestFeatures(), NullLogger.Instance); 906features: new TestFeatures(), 914features: new TestFeatures(), 922features: new TestFeatures(), 962features: new TestFeatures(), 1005features: new TestFeatures(), 1041features: new TestFeatures(), 1076features: new TestFeatures(), 1123features: new TestFeatures(), 1131features: new TestFeatures(), 1169features: new TestFeatures(), 1226}, new TestFeatures(), NullLogger.Instance); 1232features: new TestFeatures(), 1275var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1284features: new TestFeatures(), 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)
TestServices\NuGetTestHelper.cs (1)
46=> new(new TestFeatures(), new TestEnvironment(), new Aspire.Shared.TemporaryStorage(), NullLogger<NuGetClient>.Instance)
TestServices\TestConfigSourceServices.cs (1)
37new TestFeatures(), NullLogger<ConfigSourceService>.Instance);
TestServices\TestPackagingService.cs (1)
15=> PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
73 references to TestFeatures
Aspire.Cli.Tests (73)
Commands\NewCommandTests.cs (9)
87var features = new TestFeatures(); 936var features = new TestFeatures(); 1069var features = new TestFeatures(); 1155var features = new TestFeatures(); 1223var features = new TestFeatures(); 1427var features = new TestFeatures(); 1631var features = new TestFeatures(); 1668var features = new TestFeatures(); 2610var features = new TestFeatures();
Commands\StartCommandTests.cs (2)
658var features = new TestFeatures().SetFeature(KnownFeatures.GitWorktreeIsolationEnabled, true); 693var features = new TestFeatures().SetFeature(KnownFeatures.GitWorktreeIsolationEnabled, true);
Configuration\KnownFeaturesTests.cs (9)
67var features = new TestFeatures().SetFeature(KnownFeatures.ExperimentalHostingIntegrations, cliEnabled); 92var features = new TestFeatures(); 101var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 110var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 119var features = new TestFeatures(); 128var features = new TestFeatures(); 137var features = new TestFeatures(); 146var features = new TestFeatures(); 155var features = new TestFeatures();
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (1)
25var features = new TestFeatures();
NuGet\NuGetPackagePrefetcherTests.cs (4)
116var features = new TestFeatures(); 349var features = new TestFeatures(); 405var features = new TestFeatures(); 490var features = new TestFeatures();
NuGet\NuGetSignatureVerificationEnablerTests.cs (8)
22var features = new TestFeatures().SetFeature(KnownFeatures.NuGetSignatureVerificationEnabled, false); 39var features = new TestFeatures(); // default is true for this feature 57var features = new TestFeatures(); 78var features = new TestFeatures(); 99var features = new TestFeatures(); // default is true 174var features = new TestFeatures(); 194var features = new TestFeatures(); 216var features = new TestFeatures().SetFeature(KnownFeatures.NuGetSignatureVerificationEnabled, false);
Packaging\PackageChannelTests.cs (1)
886var features = new TestFeatures().SetFeature(KnownFeatures.ShowDeprecatedPackages, true);
Packaging\PackagingServiceTests.cs (26)
30var features = new TestFeatures(); 374var features = new TestFeatures(); 774var features = new TestFeatures(); 810var features = new TestFeatures(); 833var features = new TestFeatures(); 912var features = new TestFeatures(); 951var features = new TestFeatures(); 983var features = new TestFeatures(); 1015var features = new TestFeatures(); 1046var features = new TestFeatures(); 1076var features = new TestFeatures(); 1106var features = new TestFeatures(); 1136var features = new TestFeatures(); 1163var features = new TestFeatures(); 1221var features = new TestFeatures(); 1276var features = new TestFeatures(); 1311var features = new TestFeatures(); 1346var features = new TestFeatures(); 1381var features = new TestFeatures(); 1417var features = new TestFeatures(); 1462var features = new TestFeatures(); 1494var features = new TestFeatures(); 1524var features = new TestFeatures(); 1884var features = new TestFeatures(); 1936var features = new TestFeatures(); 1987var features = new TestFeatures();
Projects\DefaultLanguageDiscoveryTests.cs (6)
93var features = new TestFeatures(); 123var features = new TestFeatures(); 135var features = new TestFeatures(); 200var features = new TestFeatures(); 243var features = new TestFeatures(); 285var features = new TestFeatures();
Templating\DotNetTemplateFactoryTests.cs (6)
259var features = new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 278var features = new TestFeatures(); 297var features = new TestFeatures(); 313var features = new TestFeatures(); 328var features = new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 342private static DotNetTemplateFactory CreateTemplateFactory(TestFeatures features, bool nonInteractive = false, TestDotNetSdkInstaller? sdkInstaller = null)
TestServices\TestFeatures.cs (1)
12public TestFeatures SetFeature(string featureName, bool value)