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