void OpenSolution()
 {
     FakeProjectService = new FakePackageManagementProjectService();
     MSBuildSolution    = CreateSharpDevelopSolution();
     FakeProjectService.OpenSolution = MSBuildSolution;
     Solution = new Solution(FakeProjectService);
 }
Exemple #2
0
 public TestablePackageManagementConsoleViewModel(
     RegisteredPackageSources registeredPackageSources,
     IPackageManagementConsoleHost consoleHost,
     FakePackageManagementProjectService projectService)
     : base(registeredPackageSources, projectService, consoleHost)
 {
     this.RegisteredPackageSources = registeredPackageSources;
     this.FakeProjectService       = projectService;
 }
Exemple #3
0
 public TestablePackageManagementOptions(
     Properties properties,
     FakeSettings fakeSettings,
     FakePackageManagementProjectService projectService)
     : base(properties, CreateSettingsProvider(fakeSettings, projectService))
 {
     this.Properties     = properties;
     this.FakeSettings   = fakeSettings;
     this.ProjectService = projectService;
 }
 public TestableDTEProject(
     TestableProject project,
     FakePackageManagementProjectService projectService,
     FakeFileService fileService)
     : base(project, projectService, fileService)
 {
     this.TestableProject    = project;
     this.FakeProjectService = projectService;
     this.FakeFileService    = fileService;
 }
Exemple #5
0
 TestableSharpDevelopProjectSystem(
     MSBuildBasedProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     FakeLogger logger)
     : base(project, fileService, projectService)
 {
     FakeFileService    = (FakeFileService)fileService;
     FakeProjectService = (FakePackageManagementProjectService)projectService;
     Logger             = logger;
 }
Exemple #6
0
 public TestableInstallProjectTemplatePackagesCommand(
     FakePackageRepositoryFactory fakePackageRepositoryCache,
     FakePackageManagementProjectService projectService,
     FakeMessageService messageService,
     FakeLoggingService loggingService)
     : base(fakePackageRepositoryCache, projectService, messageService, loggingService)
 {
     this.FakePackageRepositoryCache = fakePackageRepositoryCache;
     this.FakeProjectService         = projectService;
     this.FakeMessageService         = messageService;
     this.FakeLoggingService         = loggingService;
 }
Exemple #7
0
 public TestablePackageManagementConsoleViewModel(
     IPackageManagementConsoleHost consoleHost,
     FakePackageManagementProjectService projectService)
     : this(new RegisteredPackageSources(new PackageSource[0]), consoleHost, projectService)
 {
 }
Exemple #8
0
 public static SettingsProvider CreateSettingsProvider(FakeSettings fakeSettings, FakePackageManagementProjectService projectService)
 {
     ChangeSettingsReturnedBySettingsProvider(fakeSettings);
     return(new SettingsProvider(projectService));
 }