68 instantiations of PackagingService
Aspire.Cli.Tests (68)
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
487options.PackagingServiceFactory = sp => new PackagingService(
Packaging\NuGetConfigMergerSnapshotTests.cs (1)
29return new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance);
Packaging\PackagingServiceTests.cs (64)
32var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 69var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 144var packagingService = new PackagingService( 204var packagingService = new PackagingService( 240var packagingService = new PackagingService( 279var packagingService = new PackagingService( 308var packagingService = new PackagingService( 380var packagingService = new PackagingService( 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); 777var packagingService = new PackagingService( 820var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 853var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 896var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 928var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 960var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 991var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1021var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1051var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1080var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1107var packagingService = new PackagingService( 1165var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1214var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1256var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1291var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1328var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1362var packagingService = new PackagingService( 1407var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1439var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1469var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1495var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1529var packagingService = new PackagingService( 1572var packagingService = new PackagingService( 1608var packagingService = new PackagingService( 1641var packagingService = new PackagingService( 1672var packagingService = new PackagingService( 1696var packagingService = new PackagingService( 1728var packagingService = new PackagingService( 1782var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1829var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1881var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1932var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 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\PrebuiltAppHostServerTests.cs (1)
807var packagingService = new PackagingService(
Utils\CliTestHelper.cs (1)
649return new PackagingService(executionContext, nuGetPackageCache, features, configuration, NullLogger<PackagingService>.Instance);
180 references to PackagingService
aspire (3)
Packaging\PackagingService.cs (2)
87private readonly ILogger<PackagingService> _logger; 108ILogger<PackagingService> logger,
Program.cs (1)
497builder.Services.AddSingleton<IPackagingService, PackagingService>();
Aspire.Cli.Tests (177)
Commands\InitCommandTests.cs (2)
1532/// the channels produced by <see cref="PackagingService.GetChannelsAsync"/>: <c>default</c> 2108/// shape — not just that one URL appears in the file. The real <see cref="PackagingService"/>
Commands\NewCommandTemplateConfigPersistenceTests.cs (1)
492NullLogger<PackagingService>.Instance,
Commands\UpdateCommandTests.cs (1)
2580config[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+2574ef57e97fc393aff67592fd442afca6a6d02f";
Packaging\NuGetConfigMergerSnapshotTests.cs (7)
25private static PackagingService CreatePackagingService(CliExecutionContext executionContext) 29return new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 53var packagingService = CreatePackagingService(executionContext); 102var packagingService = CreatePackagingService(executionContext); 164var packagingService = CreatePackagingService(executionContext); 225var packagingService = CreatePackagingService(executionContext); 284var packagingService = CreatePackagingService(executionContext);
Packaging\PackagingServiceTests.cs (162)
32var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 66[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 69var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 144var packagingService = new PackagingService( 149NullLogger<PackagingService>.Instance, 204var packagingService = new PackagingService( 209NullLogger<PackagingService>.Instance, 240var packagingService = new PackagingService( 245NullLogger<PackagingService>.Instance, 276[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 279var packagingService = new PackagingService( 284NullLogger<PackagingService>.Instance, 307var logger = new CapturingLogger<PackagingService>(); 308var packagingService = new PackagingService( 370settings[PackagingService.OverrideStagingFeedConfigKey] = overrideFeed; 380var packagingService = new PackagingService( 385NullLogger<PackagingService>.Instance, 431[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 432[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 436var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 463[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 464[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0+abcdef1234567890abcdef1234567890abcdef12", 468var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 493[PackagingService.OverrideCliIdentityChannelConfigKey] = "not-a-real-channel", 494[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 498var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 519[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 520[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 521[PackagingService.OverrideStagingFeedConfigKey] = OverrideFeed, 525var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, NullLogger<PackagingService>.Instance); 546[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 547[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 551var logger = new CapturingLogger<PackagingService>(); 552var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 573[PackagingService.OverrideCliInformationalVersionConfigKey] = "13.4.0-preview.1.26280.6+abcdef1234567890abcdef1234567890abcdef12", 577var logger = new CapturingLogger<PackagingService>(); 578var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), configuration, logger); 599[PackagingService.OverrideCliIdentityChannelConfigKey] = PackageChannelNames.Staging, 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); 725[PackagingService.OverrideStagingFeedConfigKey] = overrideUrl 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); 777var packagingService = new PackagingService( 782NullLogger<PackagingService>.Instance, 808/// real <see cref="PackagingService"/> layer. 820var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 849[PackagingService.OverrideStagingFeedConfigKey] = testFeedUrl 853var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 892[PackagingService.OverrideStagingFeedConfigKey] = customFeedUrl 896var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 924[PackagingService.OverrideStagingFeedConfigKey] = azureDevOpsFeedUrl 928var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 956[PackagingService.OverrideStagingFeedConfigKey] = invalidFeedUrl 960var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 986[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 991var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1016[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1021var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1046[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1051var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1076[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 1080var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1103[PackagingService.OverrideStagingFeedConfigKey] = "https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-microsoft-aspire-48a11dae/nuget/v3/index.json" 1107var packagingService = new PackagingService( 1112NullLogger<PackagingService>.Instance); 1161[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json" 1165var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1214var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1256var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1291var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1324[PackagingService.OverrideStagingFeedConfigKey] = customFeed 1328var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1362var packagingService = new PackagingService( 1367NullLogger<PackagingService>.Instance); 1407var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1439var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1464[PackagingService.OverrideStagingFeedConfigKey] = "https://example.com/nuget/v3/index.json", 1469var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), features, configuration, NullLogger<PackagingService>.Instance); 1495var packagingService = new PackagingService(executionContext, new FakeNuGetPackageCache(), new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1529var packagingService = new PackagingService( 1534NullLogger<PackagingService>.Instance, 1572var packagingService = new PackagingService( 1577NullLogger<PackagingService>.Instance, 1608var packagingService = new PackagingService( 1613NullLogger<PackagingService>.Instance, 1641var packagingService = new PackagingService( 1646NullLogger<PackagingService>.Instance, 1672var packagingService = new PackagingService( 1677NullLogger<PackagingService>.Instance, 1696var packagingService = new PackagingService( 1701NullLogger<PackagingService>.Instance, 1728var packagingService = new PackagingService( 1733NullLogger<PackagingService>.Instance, 1744Assert.Null(PackagingService.TryResolvePrInstallPackagesDirectory("bad\0path", "pr-17225")); 1760Assert.Null(PackagingService.TryResolvePrInstallPackagesDirectory(processPath, prChannelName)); 1782var packagingService = new PackagingService(executionContext, fakeCache, new TestFeatures(), new ConfigurationBuilder().Build(), NullLogger<PackagingService>.Instance); 1829var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1881var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 1932var packagingService = new PackagingService(executionContext, fakeCache, features, configuration, NullLogger<PackagingService>.Instance); 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); 2302Assert.True(PackagingService.TryParseNupkgFileName(fileName, out var id, out var version)); 2316Assert.False(PackagingService.TryParseNupkgFileName(fileName, out var id, out var version));
Projects\PrebuiltAppHostServerTests.cs (3)
804[PackagingService.OverrideStagingFeedConfigKey] = overrideStagingFeed 807var packagingService = new PackagingService( 812NullLogger<PackagingService>.Instance);
Utils\CliTestHelper.cs (1)
649return new PackagingService(executionContext, nuGetPackageCache, features, configuration, NullLogger<PackagingService>.Instance);