462 instantiations of TestFeatures
Aspire.Cli.Tests (462)
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(), 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)
297[Aspire.Cli.Packaging.PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance)]) 1247[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); 1347var implicitChannel = PackageChannel.CreateImplicitChannel(implicitCache, new TestFeatures(), NullLogger.Instance); 1353features: new TestFeatures(), NullLogger.Instance); 1413var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 1751var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2097var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2526var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2650features: 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)
1073new 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)
86var features = new TestFeatures(); 399var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 400var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 477var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 554var prChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, [], fakeCache, new TestFeatures(), NullLogger.Instance); 909var features = new TestFeatures(); 1019options.FeatureFlagsFactory = _ => new TestFeatures().SetFeature(KnownFeatures.ShowAllTemplates, true); 1042var features = new TestFeatures(); 1128var features = new TestFeatures(); 1196var features = new TestFeatures(); 1313new TestFeatures(), 1358new TestFeatures(), 1400var features = new TestFeatures(); 1572var features = new TestFeatures(); 1609var features = new TestFeatures(); 1950var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Both, [], stableCache, new TestFeatures(), NullLogger.Instance); 2147var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2222var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2276var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2394var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, [], dailyCache, new TestFeatures(), NullLogger.Instance); 2519var features = new TestFeatures(); 3735var 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)
152new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 268new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 495new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance, 597}, 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(), 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), 2289PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance), 2290PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance), 2523var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2524var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2525var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 2526var hiveChannel = PackageChannel.CreateExplicitChannel("pr-12345", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3148var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 3149var stableChannel = PackageChannel.CreateExplicitChannel("stable", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3150var stagingChannel = PackageChannel.CreateExplicitChannel("staging", PackageChannelQuality.Stable, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3151var dailyChannel = PackageChannel.CreateExplicitChannel("daily", PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance); 3164channels.Add(PackageChannel.CreateExplicitChannel(hive.Name, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3171channels.Add(PackageChannel.CreateExplicitChannel(PackageChannelNames.Local, PackageChannelQuality.Both, mappings: null, fakeCache, new TestFeatures(), NullLogger.Instance)); 3770features: 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 (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)
311provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 431new 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)
38var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance) 259new TestFeatures(), 286new TestFeatures(), 345var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 455var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), logger); 571new TestFeatures(), 609new TestFeatures(), 635new TestFeatures(), 674new TestFeatures(), 719new TestFeatures(), 748new TestFeatures(), 790var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 820var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 852var client = new NuGetClient(new TestFeatures(), TestEnvironment.CreateLinux(), NullLogger<NuGetClient>.Instance); 879var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 966var client = new NuGetClient(new TestFeatures(), new TestEnvironment(), NullLogger<NuGetClient>.Instance); 1009new TestFeatures(), 1114new TestFeatures(), 1174new TestFeatures(), 1222new TestFeatures(), 1277new TestFeatures(), 1333new TestFeatures(), 1396new TestFeatures(), 1459new TestFeatures(), 1512new TestFeatures(), 1568new TestFeatures(), 1631new TestFeatures(), 1690new TestFeatures(), 1756new TestFeatures(), 1776new TestFeatures(), 1796new 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)
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 (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(), 2342? PackageChannel.CreateExplicitChannel(PackageChannelNames.Staging, PackageChannelQuality.Both, [], cache, new TestFeatures(), NullLogger.Instance) 2343: PackageChannel.CreateImplicitChannel(cache, new TestFeatures(), NullLogger.Instance); 2387var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance); 2477var implicitChannel = PackageChannel.CreateImplicitChannel(fakeCache, new TestFeatures(), NullLogger.Instance);
Projects\PrebuiltAppHostServerTests.cs (45)
253features: new TestFeatures(), 262new TestFeatures(), 383new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 1044features: new TestFeatures(), 1089features: new TestFeatures(), 1140features: new TestFeatures(), 1183features: new TestFeatures(), 1190features: new TestFeatures(), 1406features: new TestFeatures(), 1465new TestFeatures(), 1512new TestFeatures(), 1523features: new TestFeatures(), 1920features: new TestFeatures(), NullLogger.Instance); 1949features: new TestFeatures(), 2008features: new TestFeatures(), NullLogger.Instance); 2041features: new TestFeatures(), 2077features: new TestFeatures(), 2132features: new TestFeatures(), NullLogger.Instance); 2201features: new TestFeatures(), NullLogger.Instance); 2223features: new TestFeatures(), NullLogger.Instance); 2245features: new TestFeatures(), NullLogger.Instance); 2330"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2357"daily", PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2430channelName, PackageChannelQuality.Both, mappings, new FakeNuGetPackageCache(), new TestFeatures(), NullLogger.Instance); 2724features: new TestFeatures(), NullLogger.Instance); 2773features: new TestFeatures(), NullLogger.Instance); 2827features: new TestFeatures(), NullLogger.Instance); 2873features: new TestFeatures(), NullLogger.Instance); 2964features: new TestFeatures(), NullLogger.Instance); 3025features: new TestFeatures(), NullLogger.Instance); 3185features: new TestFeatures(), 3283features: new TestFeatures(), 3293new TestFeatures(), 3452features: new TestFeatures(), 3592features: new TestFeatures(), 3713features: new TestFeatures(), 3798features: new TestFeatures(), 3875features: new TestFeatures(), 3939features: new TestFeatures(), 4206features: new TestFeatures(), NullLogger.Instance); 4380new TestFeatures(), 4580features: new TestFeatures(), 4589new TestFeatures(), 5048new TestFeatures(), 5060new TestFeatures(),
Projects\ProjectUpdaterNuGetConfigurationTests.cs (11)
333provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 492provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 688provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance, 943provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 993provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1106provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1279provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1411provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1550provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1619provider.GetRequiredService<INuGetPackageCache>(), new TestFeatures(), NullLogger.Instance); 1697provider.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(), NullLogger<NuGetClient>.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)
86var features = new TestFeatures(); 909var features = new TestFeatures(); 1042var features = new TestFeatures(); 1128var features = new TestFeatures(); 1196var features = new TestFeatures(); 1400var features = new TestFeatures(); 1572var features = new TestFeatures(); 1609var features = new TestFeatures(); 2519var 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)
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(); 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)