Ejemplo n.º 1
0
 void CreateRegisteredPackageSources(List <PackageSource> packageSources, FakePropertyService propertyService)
 {
     fakeSettingsFactory = new FakeSettingsFactory();
     fakeSettingsFactory.FakeSettings.AddFakePackageSources(packageSources);
     registeredPackageSources =
         new RegisteredProjectTemplatePackageSources(
             propertyService,
             fakeSettingsFactory);
 }
        void CreateCache()
        {
            fakeMainCache = new FakePackageRepositoryFactory();
            var propertyService = new FakePropertyService();

            fakeSettingsFactory      = new FakeSettingsFactory();
            registeredPackageSources = new RegisteredProjectTemplatePackageSources(propertyService, fakeSettingsFactory);
            cache = new ProjectTemplatePackageRepositoryCache(fakeMainCache, registeredPackageSources);
        }