37 instantiations of NuGetSourceInfo
aspire (1)
NuGet\NuGetClient.cs (1)
1246return new(
Aspire.Cli.Tests (36)
NuGet\NuGetConfigurationTests.cs (34)
30new("aspire-daily", "integration", isEnabled, true, false) { IsIntegrationSource = true }, 31new("public", "public", true, false, false) 59Sources = [new("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true }] 88new("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true }, 89new("company", "integration", true, false, false) { IsIntegrationSource = true } 110Sources = [new(sourceKey, "integration", true, false, false) { IsIntegrationSource = true }] 141new(sdkSourceKey, "sdk", true, false, false) { IsCliManaged = true }, 142new("public", "public", true, false, false) 177new(previousKey, NuGetSourceIdentity.Compute(previousSource, settings.SourceIdentityKey), 179new("public", "public", true, false, false), 180new("sdk", "sdk", true, false, false) 217new("company-feed", NuGetSourceIdentity.Compute(selectedSource, settings.SourceIdentityKey), 219new("other", NuGetSourceIdentity.Compute(otherSource, settings.SourceIdentityKey), true, false, false) 244new("authenticated", identity, true, true, false) { IsIntegrationSource = true }, 245new("anonymous", identity, true, false, false) { IsIntegrationSource = true } 269new("aspire-daily", "integration", false, false, false) { IsIntegrationSource = true }, 270new("aspire-staging", "channel", true, false, false) 297new("aspire-daily", "integration", true, false, false) { IsIntegrationSource = true } 330new("company", "company", true, false, false), 331new("aspire-test", "daily", true, false, false), 332new("aspire-test-0", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), isEnabled, true, false) 378new("company", "company", true, true, true), 379new(sourceKey, "channel", true, true, false) { IsCliManaged = isCliManaged } 410Sources = [new("aspire-test", "daily", true, false, false)] 437new("company", "company", true, true, true), 438new("aspire-staging", "staging", true, false, false), 439new("disabled", "disabled", false, false, false) 467Sources = [new("aspire-staging", "staging", true, false, false)] 496new("company-public", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), 531new("company", "company", true, false, false), 532new("aspire-test", NuGetSourceIdentity.Compute(channelSource, settings.SourceIdentityKey), 534new("nuget.org", NuGetSourceIdentity.Compute(PackageSources.NuGetOrg, settings.SourceIdentityKey), 611Sources = [new("company", "identity", false, false, false)], 635Sources = [new("old", "identity", isEnabled, false, false)]
Projects\PrebuiltAppHostServerTests.cs (2)
2476=> new( 5445.Select(source => new NuGetSourceInfo(
20 references to NuGetSourceInfo
aspire (14)
DotNet\DotNetAppHostNuGetConfigBuilder.cs (2)
93foreach (var source in settings.Sources.Where(source => 157var ambientSource = settings.Sources.Single(ambient =>
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
200var ambientSource = sourceConfiguration.Settings.Sources.Single(ambient =>
NuGet\BundleNuGetService.cs (1)
41IReadOnlyList<NuGetSourceInfo> Sources,
NuGet\NuGetClient.cs (1)
1244private static NuGetSourceInfo CreateSourceInfo(PackageSource source, byte[] identityKey)
NuGet\NuGetConfigurationBuilder.cs (9)
39.Select(mapping => channelSources.TryGetValue(mapping.SourceKey, out var source) 48foreach (var source in channelSources.Values.Where(static source => source.IsIntegrationSource)) 123internal static bool IsCliManagedSource(NuGetSourceInfo source, string workloadId) 126internal static bool IsObsoleteStableChannelPattern(NuGetSourceInfo source, string pattern) 149IReadOnlyList<NuGetSourceInfo> ambientSources, 196var preferredDisabledMatch = ambientMatches.FirstOrDefault(static ambientSource => 201foreach (var ambientSource in selectedMatches) 360IReadOnlyList<NuGetSourceInfo> ambientSources, 377foreach (var ambientSource in ambientSources.Where(static source => source.IsEnabled))
Aspire.Cli.Tests (6)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (1)
83var teamSource = Assert.Single(
NuGet\NuGetClientTests.cs (2)
1745var sourceInfo = Assert.Single(settings.Sources, source => source.Name == "private"); 1810var sourceInfo = Assert.Single(settings.Sources);
NuGet\NuGetConfigurationQueryTests.cs (1)
150var retained = Assert.Single(service.GetNuGetSettings(appHostDirectory.FullName, TestContext.Current.CancellationToken).Sources,
NuGet\NuGetTestHelperTests.cs (1)
24var source = Assert.Single(snapshot.Sources);
Projects\PrebuiltAppHostServerTests.cs (1)
2470private static NuGetSourceInfo CreateNuGetSourceInfo(