public void SetUp ()
		{
			fakeSettings = new FakeSettings ();
			projectService = new FakePackageManagementProjectService ();
			SettingsProvider.LoadDefaultSettings = LoadDefaultSettings;
			settingsProvider = new SettingsProvider (projectService);
		}
		void CreateOpenMSBuildProjects ()
		{
			fakeProjectService = new FakePackageManagementProjectService ();
			openProjects = fakeProjectService.OpenProjects;

			projects = new OpenDotNetProjects (fakeProjectService);
		}
		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;
		}
Exemplo n.º 6
0
 TestableMonoDevelopProjectSystem(
     IDotNetProject project,
     IPackageManagementFileService fileService,
     IPackageManagementProjectService projectService,
     FakeLogger logger)
     : base(project, fileService, projectService, GuiSyncDispatcher)
 {
     FakeFileService    = (FakeFileService)fileService;
     FakeProjectService = (FakePackageManagementProjectService)projectService;
     Logger             = logger;
 }
		TestableMonoDevelopProjectSystem (
			IDotNetProject project,
			IPackageManagementFileService fileService,
			IPackageManagementProjectService projectService,
			FakeLogger logger)
			: base (project, fileService, projectService, GuiSyncDispatcher)
		{
			FakeFileService = (FakeFileService)fileService;
			FakeProjectService = (FakePackageManagementProjectService)projectService;
			Logger = logger;
		}
		void CreateSolution (PackageManagementOptions options)
		{
			testProject = ProjectHelper.CreateTestProject ();
			fakeRegisteredPackageRepositories = new FakeRegisteredPackageRepositories ();
			fakeProjectFactory = new FakePackageManagementProjectFactory ();
			fakeProjectService = new FakePackageManagementProjectService ();

			fakeProjectService.CurrentProject = testProject;
			fakeProjectService.OpenSolution = testProject.ParentSolution;

			fakeSolutionPackageRepositoryFactory = new FakeSolutionPackageRepositoryFactory ();
			fakeSolutionPackageRepository = fakeSolutionPackageRepositoryFactory.FakeSolutionPackageRepository;

			solution =
				new PackageManagementSolution (
				fakeRegisteredPackageRepositories,
				fakeProjectService,
				fakeProjectFactory,
				fakeSolutionPackageRepositoryFactory);
		}
 public static SettingsProvider CreateSettingsProvider(FakeSettings fakeSettings, FakePackageManagementProjectService projectService)
 {
     ChangeSettingsReturnedBySettingsProvider(fakeSettings);
     return(new SettingsProvider(projectService));
 }
		void CreateProjectTargetFrameworkMonitor ()
		{
			eventArgs = new List<ProjectTargetFrameworkChangedEventArgs> ();
			projectService = new FakePackageManagementProjectService ();
			monitor = new ProjectTargetFrameworkMonitor (projectService);
		}
		public static SettingsProvider CreateSettingsProvider (FakeSettings fakeSettings, FakePackageManagementProjectService projectService)
		{
			ChangeSettingsReturnedBySettingsProvider (fakeSettings);
			return new SettingsProvider (projectService);
		}
		void CreateSettingsProvider (FakeSettings fakeSettings)
		{
			projectService = new FakePackageManagementProjectService ();
			settingsProvider = TestablePackageManagementOptions.CreateSettingsProvider (fakeSettings, projectService);
		}