void CreateAction() { fakePackageManagementEvents = new FakePackageManagementEvents(); fakeProject = new FakePackageManagementProject(); action = new InstallPackageAction(fakeProject, fakePackageManagementEvents); installPackageHelper = new InstallPackageHelper(action); }
void CreatePackageManagementService(PackageManagementOptions options) { testProject = ProjectHelper.CreateTestProject(); fakePackageRepositoryFactory = new FakePackageRepositoryFactory(); fakePackageManagerFactory = new FakePackageManagerFactory(); fakeProjectService = new FakePackageManagementProjectService(); fakeOutputMessagesView = new FakePackageManagementOutputMessagesView(); fakeProjectService.CurrentProject = testProject; packageManagementService = new PackageManagementService(options, fakePackageRepositoryFactory, fakePackageManagerFactory, fakeProjectService, fakeOutputMessagesView); installPackageHelper = new InstallPackageHelper(packageManagementService); }