void CreateProject(IPackageRepository sourceRepository) { fakePackageManagerFactory = new FakePackageManagerFactory(); fakePackageManager = fakePackageManagerFactory.FakePackageManager; fakeProjectManager = fakePackageManager.FakeProjectManager; fakeProject = new FakeDotNetProject(); packageManagementEvents = new PackageManagementEvents(); project = new PackageManagementProject( sourceRepository, fakeProject, packageManagementEvents, fakePackageManagerFactory); }
void CreateProject(MSBuildBasedProject msbuildProject) { fakePackageManagerFactory = new FakePackageManagerFactory(); fakePackageManager = fakePackageManagerFactory.FakePackageManager; fakeProjectManager = fakePackageManager.FakeProjectManager; fakeSourceRepository = new FakePackageRepository(); fakePackageManagementEvents = new FakePackageManagementEvents(); project = new PackageManagementProject( fakeSourceRepository, msbuildProject, fakePackageManagementEvents, fakePackageManagerFactory); }
void CreateProject() { fakePackageManagerFactory = new FakePackageManagerFactory(); fakePackageManager = fakePackageManagerFactory.FakePackageManager; fakeProjectManager = fakePackageManager.FakeProjectManager; fakeSourceRepository = new FakePackageRepository(); fakeMSBuildProject = ProjectHelper.CreateTestProject(); fakePackageManagementEvents = new FakePackageManagementEvents(); project = new PackageManagementProject( fakeSourceRepository, fakeMSBuildProject, fakePackageManagementEvents, fakePackageManagerFactory); }