public void SetUp () { fakeSettings = new FakeSettings (); projectService = new FakePackageManagementProjectService (); SettingsProvider.LoadDefaultSettings = LoadDefaultSettings; settingsProvider = new SettingsProvider (projectService); }
void CreateOneRegisteredPackageSource () { Options = new TestablePackageManagementOptions (); FakeSettings = Options.FakeSettings; RegisteredPackageSources = Options.PackageSources; AddOnePackageSource (); }
void CreateOneRegisteredPackageSource() { Options = new TestablePackageManagementOptions(); FakeSettings = Options.FakeSettings; RegisteredPackageSources = Options.PackageSources; AddOnePackageSource(); }
void CreateOptions () { var properties = new Properties (); var projectService = new FakePackageManagementProjectService (); fakeSettings = new FakeSettings (); SettingsProvider settingsProvider = TestablePackageManagementOptions.CreateSettingsProvider (fakeSettings, projectService); options = new PackageManagementOptions (properties, settingsProvider); }
public TestablePackageManagementOptions( Properties properties, FakeSettings fakeSettings, FakePackageManagementProjectService projectService) : base(properties, CreateSettingsProvider(fakeSettings, projectService)) { this.Properties = properties; this.FakeSettings = fakeSettings; this.ProjectService = projectService; }
public TestablePackageManagementOptions ( Properties properties, FakeSettings fakeSettings, FakePackageManagementProjectService projectService) : base (properties, CreateSettingsProvider (fakeSettings, projectService)) { this.Properties = properties; this.FakeSettings = fakeSettings; this.ProjectService = projectService; }
void CreateViewModel () { var properties = new Properties (); var settings = new FakeSettings (); var options = new PackageManagementOptions (properties, settings); packageSources = options.PackageSources; packageSources.Clear (); var cache = new PackageRepositoryCache (packageSources, new RecentPackageInfo [0]); registeredRepositories = new RegisteredPackageRepositories (cache, options); viewModel = new RegisteredPackageSourcesViewModel (registeredRepositories); }
void CreateOptions () { var properties = new Properties (); fakeSettings = new FakeSettings (); options = new PackageManagementOptions (properties, fakeSettings); }
public static void ChangeSettingsReturnedBySettingsProvider(FakeSettings settings) { SettingsProvider.LoadDefaultSettings = (fileSystem, configFile, machineSettings) => { return(settings); }; }
void CreateOptions (FakeSettings fakeSettings) { CreateProperties (); options = new PackageManagementOptions (properties, fakeSettings); }
void CreateOptions (Properties properties, FakeSettings fakeSettings) { options = new PackageManagementOptions (properties, fakeSettings); }
void CreateSettingsProvider (FakeSettings fakeSettings) { projectService = new FakePackageManagementProjectService (); settingsProvider = TestablePackageManagementOptions.CreateSettingsProvider (fakeSettings, projectService); }
void CreateSettings () { fakeSettings = new FakeSettings (); }
public TestablePackageManagementOptions(Properties properties, FakeSettings fakeSettings) : base(properties, fakeSettings) { this.Properties = properties; this.FakeSettings = fakeSettings; }
public static SettingsProvider CreateSettingsProvider (FakeSettings fakeSettings, FakePackageManagementProjectService projectService) { ChangeSettingsReturnedBySettingsProvider (fakeSettings); return new SettingsProvider (projectService); }
public static SettingsProvider CreateSettingsProvider(FakeSettings fakeSettings, FakePackageManagementProjectService projectService) { ChangeSettingsReturnedBySettingsProvider(fakeSettings); return(new SettingsProvider(projectService)); }
void CreateSettings () { settingsProvider = new FakeSettingsProvider (); settings = settingsProvider.FakeSettings; }
void CreateOptions () { options = new TestablePackageManagementOptions (); settings = options.FakeSettings; }
void CreateOptions (Properties properties, FakeSettings fakeSettings) { CreateSettingsProvider (fakeSettings); options = new PackageManagementOptions (properties, settingsProvider); }
void ChangeSettingsReturnedBySettingsProvider () { fakeSettings = new FakeSettings (); TestablePackageManagementOptions.ChangeSettingsReturnedBySettingsProvider (fakeSettings); }
public static void ChangeSettingsReturnedBySettingsProvider (FakeSettings settings) { SettingsProvider.LoadDefaultSettings = (fileSystem, configFile, machineSettings) => { return settings; }; }
public TestablePackageManagementOptions (Properties properties, FakeSettings fakeSettings) : base (properties, fakeSettings) { this.Properties = properties; this.FakeSettings = fakeSettings; }