diff --git a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt index 4da2db1..ab94e86 100644 --- a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt +++ b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.net472.approved.txt @@ -19,7 +19,7 @@ namespace Pharmacist.Core public class static ObservablesForEventGenerator { public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.Stream outputStream, System.Collections.Generic.IEnumerable assemblyPaths, System.Collections.Generic.IEnumerable searchDirectories) { } - public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, NuGet.Packaging.Core.PackageIdentity package, System.Collections.Generic.IReadOnlyCollection frameworks) { } + public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream) { } } @@ -32,15 +32,15 @@ namespace Pharmacist.Core.Extractors { public interface IExtractor { - System.Collections.Generic.List Assemblies { get; } - System.Collections.Generic.List SearchDirectories { get; } + System.Collections.Generic.IEnumerable Assemblies { get; } + System.Collections.Generic.IEnumerable SearchDirectories { get; } } public class NuGetExtractor : Pharmacist.Core.Extractors.IExtractor { public NuGetExtractor() { } - public System.Collections.Generic.List Assemblies { get; } - public System.Collections.Generic.List SearchDirectories { get; } - public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection targetFrameworks, NuGet.Packaging.Core.PackageIdentity package) { } + public System.Collections.Generic.IEnumerable Assemblies { get; } + public System.Collections.Generic.IEnumerable SearchDirectories { get; } + public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection targetFrameworks, System.Collections.Generic.IReadOnlyCollection packages) { } } } namespace Pharmacist.Core.Extractors.PlatformExtractors @@ -54,9 +54,9 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors public abstract class BasePlatform : Pharmacist.Core.Extractors.IExtractor, Pharmacist.Core.Extractors.PlatformExtractors.IPlatformExtractor { protected BasePlatform() { } - public System.Collections.Generic.List Assemblies { get; } + public System.Collections.Generic.IEnumerable Assemblies { get; set; } public abstract Pharmacist.Core.AutoPlatform Platform { get; } - public System.Collections.Generic.List SearchDirectories { get; } + public System.Collections.Generic.IEnumerable SearchDirectories { get; set; } public abstract System.Threading.Tasks.Task Extract(string referenceAssembliesLocation); } public class iOS : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform @@ -88,18 +88,6 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors public override Pharmacist.Core.AutoPlatform Platform { get; } public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } } - public class Winforms : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform - { - public Winforms() { } - public override Pharmacist.Core.AutoPlatform Platform { get; } - public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } - } - public class WPF : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform - { - public WPF() { } - public override Pharmacist.Core.AutoPlatform Platform { get; } - public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } - } } namespace Pharmacist.Core.NuGet { @@ -114,7 +102,7 @@ namespace Pharmacist.Core.NuGet [return: System.Runtime.CompilerServices.TupleElementNamesAttribute(new string[] { "folder", "files"})] - public static System.Threading.Tasks.Task>>> DownloadPackageAndFilesAndFolder(NuGet.Packaging.Core.PackageIdentity packageIdentity, System.Collections.Generic.IReadOnlyCollection frameworks = null, NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, System.Collections.Generic.IReadOnlyCollection packageFolders = null, System.Threading.CancellationToken token = null) { } + public static System.Threading.Tasks.Task>>> DownloadPackageAndFilesAndFolder(System.Collections.Generic.IReadOnlyCollection packageIdentities, System.Collections.Generic.IReadOnlyCollection frameworks = null, NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, System.Collections.Generic.IReadOnlyCollection packageFolders = null, System.Threading.CancellationToken token = null) { } } } namespace Pharmacist.Core.ReferenceLocators diff --git a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt index 84cd2f9..ab5ae3c 100644 --- a/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt +++ b/src/Pharmacist.Tests/API/ApiApprovalTests.EventBuilderProject.netcoreapp2.2.approved.txt @@ -19,7 +19,7 @@ namespace Pharmacist.Core public class static ObservablesForEventGenerator { public static System.Threading.Tasks.Task ExtractEventsFromAssemblies(System.IO.Stream outputStream, System.Collections.Generic.IEnumerable assemblyPaths, System.Collections.Generic.IEnumerable searchDirectories) { } - public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, NuGet.Packaging.Core.PackageIdentity package, System.Collections.Generic.IReadOnlyCollection frameworks) { } + public static System.Threading.Tasks.Task ExtractEventsFromNuGetPackages(System.IO.Stream outputStream, System.Collections.Generic.IReadOnlyCollection packages, System.Collections.Generic.IReadOnlyCollection frameworks) { } public static System.Threading.Tasks.Task ExtractEventsFromPlatforms(string outputPath, string prefix, string defaultReferenceAssemblyLocation, System.Collections.Generic.IEnumerable platforms) { } public static System.Threading.Tasks.Task WriteHeader(System.IO.Stream outputStream) { } } @@ -32,15 +32,15 @@ namespace Pharmacist.Core.Extractors { public interface IExtractor { - System.Collections.Generic.List Assemblies { get; } - System.Collections.Generic.List SearchDirectories { get; } + System.Collections.Generic.IEnumerable Assemblies { get; } + System.Collections.Generic.IEnumerable SearchDirectories { get; } } public class NuGetExtractor : Pharmacist.Core.Extractors.IExtractor { public NuGetExtractor() { } - public System.Collections.Generic.List Assemblies { get; } - public System.Collections.Generic.List SearchDirectories { get; } - public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection targetFrameworks, NuGet.Packaging.Core.PackageIdentity package) { } + public System.Collections.Generic.IEnumerable Assemblies { get; } + public System.Collections.Generic.IEnumerable SearchDirectories { get; } + public System.Threading.Tasks.Task Extract(System.Collections.Generic.IReadOnlyCollection targetFrameworks, System.Collections.Generic.IReadOnlyCollection packages) { } } } namespace Pharmacist.Core.Extractors.PlatformExtractors @@ -54,9 +54,9 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors public abstract class BasePlatform : Pharmacist.Core.Extractors.IExtractor, Pharmacist.Core.Extractors.PlatformExtractors.IPlatformExtractor { protected BasePlatform() { } - public System.Collections.Generic.List Assemblies { get; } + public System.Collections.Generic.IEnumerable Assemblies { get; set; } public abstract Pharmacist.Core.AutoPlatform Platform { get; } - public System.Collections.Generic.List SearchDirectories { get; } + public System.Collections.Generic.IEnumerable SearchDirectories { get; set; } public abstract System.Threading.Tasks.Task Extract(string referenceAssembliesLocation); } public class iOS : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform @@ -88,18 +88,6 @@ namespace Pharmacist.Core.Extractors.PlatformExtractors public override Pharmacist.Core.AutoPlatform Platform { get; } public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } } - public class Winforms : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform - { - public Winforms() { } - public override Pharmacist.Core.AutoPlatform Platform { get; } - public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } - } - public class WPF : Pharmacist.Core.Extractors.PlatformExtractors.BasePlatform - { - public WPF() { } - public override Pharmacist.Core.AutoPlatform Platform { get; } - public override System.Threading.Tasks.Task Extract(string referenceAssembliesLocation) { } - } } namespace Pharmacist.Core.NuGet { @@ -114,7 +102,7 @@ namespace Pharmacist.Core.NuGet [return: System.Runtime.CompilerServices.TupleElementNamesAttribute(new string[] { "folder", "files"})] - public static System.Threading.Tasks.Task>>> DownloadPackageAndFilesAndFolder(NuGet.Packaging.Core.PackageIdentity packageIdentity, System.Collections.Generic.IReadOnlyCollection frameworks = null, NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, System.Collections.Generic.IReadOnlyCollection packageFolders = null, System.Threading.CancellationToken token = null) { } + public static System.Threading.Tasks.Task>>> DownloadPackageAndFilesAndFolder(System.Collections.Generic.IReadOnlyCollection packageIdentities, System.Collections.Generic.IReadOnlyCollection frameworks = null, NuGet.Configuration.PackageSource nugetSource = null, bool getDependencies = True, System.Collections.Generic.IReadOnlyCollection packageFolders = null, System.Threading.CancellationToken token = null) { } } } namespace Pharmacist.Core.ReferenceLocators