void CreateOpenMSBuildProjects() { fakeProjectService = MockRepository.GenerateStub <IPackageManagementProjectService>(); openProjects = new SimpleModelCollection <IProject>(); fakeProjectService.Stub(service => service.AllProjects).Return(openProjects); projects = new OpenMSBuildProjects(fakeProjectService); }
void CreateOpenMSBuildProjects() { fakeProjectService = MockRepository.GenerateStub<IPackageManagementProjectService>(); openProjects = new SimpleModelCollection<IProject>(); fakeProjectService.Stub(service => service.AllProjects).Return(openProjects); projects = new OpenMSBuildProjects(fakeProjectService); }
void CreateOpenMSBuildProjects() { fakeProjectService = MockRepository.GenerateStub<IPackageManagementProjectService>(); openProjects = new List<IProject>(); fakeProjectService.Stub(service => service.GetOpenProjects()).Return(openProjects); projects = new OpenMSBuildProjects(fakeProjectService); }
void CreateOpenMSBuildProjects() { fakeProjectService = MockRepository.GenerateStub <IPackageManagementProjectService>(); openProjects = new List <IProject>(); fakeProjectService.Stub(service => service.GetOpenProjects()).Return(openProjects); projects = new OpenMSBuildProjects(fakeProjectService); }
void CreateProject() { msbuildProject = ProjectHelper.CreateTestProject(); helper = new ProjectContentHelper(); fakeProjectService = MockRepository.GenerateStub<IPackageManagementProjectService>(); fakeProjectService.Stub(service => service.GetProjectContent(msbuildProject)).Return(helper.ProjectContent); fakeFileService = MockRepository.GenerateStub<IPackageManagementFileService>(); project = new Project(msbuildProject, fakeProjectService, fakeFileService); }
void CreateProject() { msbuildProject = ProjectHelper.CreateTestProject(); helper = new ProjectContentHelper(); fakeProjectService = MockRepository.GenerateStub <IPackageManagementProjectService>(); fakeProjectService.Stub(service => service.GetProjectContent(msbuildProject)).Return(helper.ProjectContent); fakeFileService = MockRepository.GenerateStub <IPackageManagementFileService>(); project = new Project(msbuildProject, fakeProjectService, fakeFileService); }