Create() 공개 정적인 메소드

public static Create ( IEnumerable packages ) : IPackageRepositoryFactory
packages IEnumerable
리턴 IPackageRepositoryFactory
예제 #1
0
        public static AppUpdaterBuilder SetupWithTestValues(this AppUpdaterBuilder builder, Version installedVersion)
        {
            var versionProvider = Substitute.For <IAppVersionProvider>();

            versionProvider.CurrentVersion.Returns(installedVersion);

            return(builder
                   .SourceUpdatesFrom("repository")
                   .CreatePackageRepositoriesWith(PackageRepositoryFactories.Create(Enumerable.Empty <IPackage>()))
                   .CurrentVersionProvidedBy(versionProvider)
                   .FileSystemAccessedThrough(new MockFileSystem(TestConstants.AppDirectory))
                   .CommandLineInfoProvidedBy(Substitute.For <ICommandLineWrapper>())
                   .RelaunchAppWith(Substitute.For <IProcessWrapper>()));
        }
예제 #2
0
 public static AppUpdaterBuilder SetPublishedPackages(this AppUpdaterBuilder builder, IEnumerable <IPackage> publishedPackages)
 {
     return(builder.CreatePackageRepositoriesWith(PackageRepositoryFactories.Create(publishedPackages)));
 }