private static Nugetify GetNugetifyCommand(ConsoleMock console, string solutionFile, DirectoryInfo packageSource)
 {
     var repositoryFactory = new Mock<IPackageRepositoryFactory>();
     var packageSourceProvider = new Mock<IPackageSourceProvider>();
     var nugetify = new NugetifyCommandRunner(repositoryFactory.Object, packageSourceProvider.Object)
                    {
                        Console = console.Object,
                        MsBuildProperties = "Configuration=Releasable,SomeOtherParameter=false",
                        NuSpec = true,
                    };
     nugetify.Arguments.AddRange(new[] {solutionFile, packageSource.FullName});
     return nugetify;
 }
Exemple #2
0
        private static Nugetify GetNugetifyCommand(ConsoleMock console, string solutionFile, DirectoryInfo packageSource)
        {
            var repositoryFactory     = new Mock <IPackageRepositoryFactory>();
            var packageSourceProvider = new Mock <IPackageSourceProvider>();
            var nugetify = new NugetifyCommandRunner(repositoryFactory.Object, packageSourceProvider.Object)
            {
                Console           = console.Object,
                MsBuildProperties = "Configuration=Releasable,SomeOtherParameter=false",
                NuSpec            = true,
            };

            nugetify.Arguments.AddRange(new[] { solutionFile, packageSource.FullName });
            return(nugetify);
        }