423 instantiations of TestFeatures
Aspire.Cli.Tests (423)
Agents\AspireSkillsInstallerTests.cs (18)
44var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 91var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 374var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 449var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 491var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 525var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 567var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 614var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 661var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 702var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 772var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 843var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 872var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 908var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 961var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 1024var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 1395var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 2031features ?? new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, true),
Commands\AddCommandTests.cs (42)
433PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 434PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 505PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 506PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 592PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 593PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, [new PackageMapping("Aspire*", "stable")], stableCache, new TestFeatures(), NullLogger.Instance) 687PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 688PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 818PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 819PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance) 960PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 961PackageChannel.CreateExplicitChannel("test-hive", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "test-hive")], explicitCache, new TestFeatures(), NullLogger.Instance) 1457new TestFeatures(), 2376var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2424var channel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2472var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2475var explicitChannel = PackageChannel.CreateExplicitChannel("preview", PackageChannelQuality.Prerelease, mappings, fakeCache, new TestFeatures(), NullLogger.Instance); 2528var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2529var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], fakeCache, new TestFeatures(), NullLogger.Instance); 2564var implicitChannel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 2565var stagingChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], cache, new TestFeatures(), NullLogger.Instance); 2566var dailyChannel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], cache, new TestFeatures(), NullLogger.Instance); 2567var prChannel = PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], cache, new TestFeatures(), NullLogger.Instance); 2611new TestFeatures(), 2715PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2718PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [new PackageMapping("Aspire*", "staging")], stagingCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2719PackageChannel.CreateExplicitChannel(PackageChannelNames.Daily, PackageChannelQuality.Prerelease, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion), 2720PackageChannel.CreateExplicitChannel("pr-19404", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "pr-19404")], prCache, new TestFeatures(), NullLogger.Instance, currentCliVersion: cliVersion) 2789PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance), 2790PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [new PackageMapping("Aspire*", "daily")], dailyCache, new TestFeatures(), NullLogger.Instance) 3283PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3342PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3393PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3433new TestFeatures(), 3506PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3552PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3600PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3647PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3696PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3754PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3808PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance) 3854PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance)
Commands\InitCommandTests.cs (8)
46var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1003var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 1009features: new TestFeatures(), NullLogger.Instance); 1069var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1407var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1752var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2186var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2310features: new TestFeatures(), NullLogger.Instance);
Commands\NewCommandChannelResolutionTests.cs (5)
84var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 645var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 661features: new TestFeatures(), 711features: new TestFeatures(), 736features: new TestFeatures(),
Commands\NewCommandTemplateConfigPersistenceTests.cs (3)
416var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 429features: new TestFeatures(), 458features: new TestFeatures(),
Commands\NewCommandTests.cs (22)
53var features = new TestFeatures(); 367var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 368var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 445var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 522var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 875var features = new TestFeatures(); 932options.FeatureFlagsFactory = _ => new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 955var features = new TestFeatures(); 1042var features = new TestFeatures(); 1110var features = new TestFeatures(); 1227new TestFeatures(), 1272new TestFeatures(), 1314var features = new TestFeatures(); 1480var features = new TestFeatures(); 1517var features = new TestFeatures(); 1820var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 2017var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2092var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2146var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2264var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2391var features = new TestFeatures(); 3610var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Commands\RunCommandTests.cs (1)
4413var featuresFactory = (IServiceProvider sp) => new TestFeatures()
Commands\UpdateCommandRepositoryToolsTests.cs (4)
152new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 268new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 495new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 596}, new TestFeatures(), NullLogger.Instance, cliDownloadBaseUrl: "https://example.invalid/cli")
Commands\UpdateCommandTests.cs (22)
345features: new TestFeatures(), 644features: new TestFeatures(), 723features: new TestFeatures(), 800features: new TestFeatures(), 966features: new TestFeatures(), 1044features: new TestFeatures(), 1202features: new TestFeatures(), 1207[PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance), prChannel]); 2065var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2224PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2282PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2283PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance), 2515var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2516var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2517var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2518var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3044var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3045var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3046var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3059channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3066channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3664features: new TestFeatures(),
Configuration\DotNetBasedAppHostServerChannelResolutionTests.cs (1)
136new TestFeatures(),
Configuration\KnownFeaturesTests.cs (9)
49var features = new TestFeatures().SetFeature(KnownFeatures.ExperimentalHostingIntegrations, cliEnabled); 74var features = new TestFeatures(); 83var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 92var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 101var features = new TestFeatures(); 110var features = new TestFeatures(); 119var features = new TestFeatures(); 128var features = new TestFeatures(); 137var features = new TestFeatures();
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (1)
25var features = new TestFeatures();
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (2)
31private static PackageChannel CreateChannel(PackageMapping[] mappings) => PackageChannel.CreateExplicitChannel("test", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 193var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
DotNet\DotNetCliRunnerTests.cs (1)
305provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance);
Mcp\MockPackagingService.cs (1)
28return Task.FromResult<IEnumerable<PackageChannel>>([PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]);
NuGet\BundleNuGetServiceTests.cs (1)
54new TestFeatures(),
NuGet\NuGetClientTests.cs (29)
95new TestFeatures(), 122new TestFeatures(), 180var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 313new TestFeatures(), 351new TestFeatures(), 377new TestFeatures(), 415new TestFeatures(), 459new TestFeatures(), 488new TestFeatures(), 530var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 560var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 592var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 619var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 706var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 749new TestFeatures(), 854new TestFeatures(), 914new TestFeatures(), 962new TestFeatures(), 1017new TestFeatures(), 1073new TestFeatures(), 1136new TestFeatures(), 1199new TestFeatures(), 1252new TestFeatures(), 1308new TestFeatures(), 1371new TestFeatures(), 1430new TestFeatures(), 1496new TestFeatures(), 1516new TestFeatures(), 1536new TestFeatures(),
NuGet\NuGetConfigurationQueryTests.cs (2)
69new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 291new TestFeatures(),
NuGet\NuGetConfigurationTests.cs (3)
37new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 82new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 112new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
NuGet\NuGetPackageOperationConfigurationTests.cs (1)
231new TestFeatures(),
NuGet\NuGetPackagePrefetcherTests.cs (5)
116var features = new TestFeatures(); 207new TestFeatures(), 346var features = new TestFeatures(); 402var features = new TestFeatures(); 487var 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\PackageChannelTests.cs (35)
24var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 44var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 64var channel = PackageChannel.CreateExplicitChannel("pr-10981", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 84var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance, configureGlobalPackagesFolder: true); 100var channel = PackageChannel.CreateExplicitChannel("empty", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 122new TestFeatures(), 156new TestFeatures(), 191new TestFeatures(), 248new TestFeatures(), 287new TestFeatures(), 337new TestFeatures(), 362var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 420var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 468var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance, pinnedVersion: pinnedVersion); 496new TestFeatures(), 526var channel = PackageChannel.CreateExplicitChannel("local", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 570new TestFeatures(), 611new TestFeatures(), 656new TestFeatures(), 783var features = new TestFeatures().SetFeature(KnownFeatures.ShowDeprecatedPackages, true); 811new TestFeatures(), 842new TestFeatures(), 867var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 883var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 899var channel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 915var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 926var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 940var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, [], cache, new TestFeatures(), NullLogger.Instance); 963var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 980var channel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 995var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Stable, mappings, cache, new TestFeatures(), NullLogger.Instance); 1011var channel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Prerelease, mappings, cache, new TestFeatures(), NullLogger.Instance); 1030var channel = PackageChannel.CreateExplicitChannel(PackageChannelNames.Stable, PackageChannelQuality.Both, mappings, cache, new TestFeatures(), NullLogger.Instance); 1040var channel = PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 1058return PackageChannel.CreateExplicitChannel("local", quality, mappings, cache, features ?? new TestFeatures(), NullLogger.Instance);
Packaging\PackageSourceOverrideMappingsTests.cs (1)
232new TestFeatures(),
Packaging\PackagingServiceTests.cs (64)
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(); 818var features = new TestFeatures(); 842var features = new TestFeatures(); 885var features = new TestFeatures(); 917var features = new TestFeatures(); 949var features = new TestFeatures(); 980var features = new TestFeatures(); 1010var features = new TestFeatures(); 1040var features = new TestFeatures(); 1070var features = new TestFeatures(); 1097var features = new TestFeatures(); 1155var features = new TestFeatures(); 1210var features = new TestFeatures(); 1245var features = new TestFeatures(); 1280var features = new TestFeatures(); 1315var features = new TestFeatures(); 1351var features = new TestFeatures(); 1396var features = new TestFeatures(); 1428var features = new TestFeatures(); 1458var features = new TestFeatures(); 1495var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1532new TestFeatures(), 1575new TestFeatures(), 1611new TestFeatures(), 1644new TestFeatures(), 1675new TestFeatures(), 1699new TestFeatures(), 1731new TestFeatures(), 1782var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1818var features = new TestFeatures(); 1870var features = new TestFeatures(); 1921var features = new TestFeatures(); 1977var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2011var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2048var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2079var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2119var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2148var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2177var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2208var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2236var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2266var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 2286var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance);
Projects\AppHostServerProjectTests.cs (6)
494}, nugetCache, new TestFeatures(), NullLogger.Instance); 500}, nugetCache, new TestFeatures(), NullLogger.Instance); 502var implicitChannel = PackageChannel.CreateImplicitChannel(nugetCache, new TestFeatures(), NullLogger.Instance); 587}, nugetCache, new TestFeatures(), NullLogger.Instance); 631}, nugetCache, new TestFeatures(), NullLogger.Instance); 677}, nugetCache, new TestFeatures(), NullLogger.Instance);
Projects\DefaultLanguageDiscoveryTests.cs (15)
15var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 31var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 42var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 57var features = new TestFeatures(); 72var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 89var features = new TestFeatures(); 112var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 127var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 138var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 149var features = new TestFeatures(); 165var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 191var features = new TestFeatures(); 213var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 223var discovery = new DefaultLanguageDiscovery(new TestFeatures()); 233var features = new TestFeatures();
Projects\GuestAppHostProjectTests.cs (10)
1128var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1645features: new TestFeatures(), NullLogger.Instance); 1711features: new TestFeatures(), NullLogger.Instance); 1769features: new TestFeatures(), NullLogger.Instance); 1828features: new TestFeatures(), 1882features: new TestFeatures(), 2317? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance) 2318: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 2362var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2452var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (44)
253features: new TestFeatures(), 262new TestFeatures(), 925features: new TestFeatures(), 970features: new TestFeatures(), 1021features: new TestFeatures(), 1064features: new TestFeatures(), 1071features: new TestFeatures(), 1287features: new TestFeatures(), 1346new TestFeatures(), 1393new TestFeatures(), 1404features: new TestFeatures(), 1801features: new TestFeatures(), NullLogger.Instance); 1830features: new TestFeatures(), 1889features: new TestFeatures(), NullLogger.Instance); 1922features: new TestFeatures(), 1958features: new TestFeatures(), 2013features: new TestFeatures(), NullLogger.Instance); 2082features: new TestFeatures(), NullLogger.Instance); 2104features: new TestFeatures(), NullLogger.Instance); 2126features: new TestFeatures(), NullLogger.Instance); 2211"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2238"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2310channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2604features: new TestFeatures(), NullLogger.Instance); 2653features: new TestFeatures(), NullLogger.Instance); 2707features: new TestFeatures(), NullLogger.Instance); 2753features: new TestFeatures(), NullLogger.Instance); 2844features: new TestFeatures(), NullLogger.Instance); 2905features: new TestFeatures(), NullLogger.Instance); 3065features: new TestFeatures(), 3163features: new TestFeatures(), 3173new TestFeatures(), 3332features: new TestFeatures(), 3472features: new TestFeatures(), 3593features: new TestFeatures(), 3678features: new TestFeatures(), 3755features: new TestFeatures(), 3819features: new TestFeatures(), 4086features: new TestFeatures(), NullLogger.Instance); 4260new TestFeatures(), 4460features: new TestFeatures(), 4469new TestFeatures(), 4928new TestFeatures(), 4940new TestFeatures(),
Projects\ProjectUpdaterNuGetConfigurationTests.cs (8)
333provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 492provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 688provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance, 931provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 981provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1094provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1260provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1392provider.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(),
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 (32)
94features: new TestFeatures(), NullLogger.Instance); 235}, new TestFeatures(), NullLogger.Instance); 268var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 295var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 307features: new TestFeatures(), NullLogger.Instance); 369features: new TestFeatures(), 419var implicitChannel = PackageChannel.CreateImplicitChannel(packageCache, new TestFeatures(), NullLogger.Instance); 425new TestFeatures(), 464new TestFeatures(), 499new TestFeatures(), 553var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 614}, new TestFeatures(), NullLogger.Instance); 620features: new TestFeatures(), 676}, new TestFeatures(), NullLogger.Instance); 682features: new TestFeatures(), 690features: new TestFeatures(), 698features: new TestFeatures(), 738features: new TestFeatures(), 781features: new TestFeatures(), 817features: new TestFeatures(), 852features: new TestFeatures(), 899features: new TestFeatures(), 907features: new TestFeatures(), 945features: new TestFeatures(), 1002}, new TestFeatures(), NullLogger.Instance); 1008features: new TestFeatures(), 1051var implicitCh = PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1060features: new TestFeatures(), 1127features: new TestFeatures(), NullLogger.Instance); 1166features: new TestFeatures(), NullLogger.Instance); 1211features: new TestFeatures(), NullLogger.Instance); 1261features: new TestFeatures(), NullLogger.Instance);
TestServices\NuGetTestHelper.cs (1)
45=> new(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance)
TestServices\TestPackagingService.cs (1)
15=> PackageChannel.CreateImplicitChannel(new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance);
86 references to TestFeatures
Aspire.Cli.Tests (86)
Agents\AspireSkillsInstallerTests.cs (17)
44var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 91var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 374var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 449var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 491var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 525var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 567var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 614var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 661var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 702var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 772var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 843var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 872var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 908var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 961var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 1024var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false); 1395var features = new TestFeatures().SetFeature(KnownFeatures.AspireSkillsRemoteFetchEnabled, false);
Commands\NewCommandTests.cs (9)
53var features = new TestFeatures(); 875var features = new TestFeatures(); 955var features = new TestFeatures(); 1042var features = new TestFeatures(); 1110var features = new TestFeatures(); 1314var features = new TestFeatures(); 1480var features = new TestFeatures(); 1517var features = new TestFeatures(); 2391var features = new TestFeatures();
Configuration\KnownFeaturesTests.cs (9)
49var features = new TestFeatures().SetFeature(KnownFeatures.ExperimentalHostingIntegrations, cliEnabled); 74var features = new TestFeatures(); 83var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 92var features = new TestFeatures().SetFeature(KnownFeatures.StagingChannelEnabled, true); 101var features = new TestFeatures(); 110var features = new TestFeatures(); 119var features = new TestFeatures(); 128var features = new TestFeatures(); 137var features = new TestFeatures();
DotNet\DotNetAppHostNuGetConfigMergerSnapshotTests.cs (1)
25var features = new TestFeatures();
NuGet\NuGetPackagePrefetcherTests.cs (4)
116var features = new TestFeatures(); 346var features = new TestFeatures(); 402var features = new TestFeatures(); 487var 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)
783var features = new TestFeatures().SetFeature(KnownFeatures.ShowDeprecatedPackages, true);
Packaging\PackagingServiceTests.cs (25)
30var features = new TestFeatures(); 374var features = new TestFeatures(); 774var features = new TestFeatures(); 818var features = new TestFeatures(); 842var features = new TestFeatures(); 885var features = new TestFeatures(); 917var features = new TestFeatures(); 949var features = new TestFeatures(); 980var features = new TestFeatures(); 1010var features = new TestFeatures(); 1040var features = new TestFeatures(); 1070var features = new TestFeatures(); 1097var features = new TestFeatures(); 1155var features = new TestFeatures(); 1210var features = new TestFeatures(); 1245var features = new TestFeatures(); 1280var features = new TestFeatures(); 1315var features = new TestFeatures(); 1351var features = new TestFeatures(); 1396var features = new TestFeatures(); 1428var features = new TestFeatures(); 1458var features = new TestFeatures(); 1818var features = new TestFeatures(); 1870var features = new TestFeatures(); 1921var features = new TestFeatures();
Projects\DefaultLanguageDiscoveryTests.cs (5)
57var features = new TestFeatures(); 89var features = new TestFeatures(); 149var features = new TestFeatures(); 191var features = new TestFeatures(); 233var 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)