void CreateViewModel( FakePackageManagementSolution solution, IThreadSafePackageManagementEvents packageManagementEvents) { fakeTaskFactory = new FakeTaskFactory(); fakeLicenseAcceptanceService = new FakeLicenseAcceptanceService(); fakeSelectProjectsService = new FakeSelectProjectsService(); fakeFileConflictResolver = MockRepository.GenerateStub <IFileConflictResolver>(); userPrompts = new ManagePackagesUserPrompts( packageManagementEvents, fakeLicenseAcceptanceService, fakeSelectProjectsService, fakeFileConflictResolver); fakeActionRunner = new FakePackageActionRunner(); packagesViewModels = new TestablePackagesViewModels( solution, fakeRegisteredPackageRepositories, packageManagementEvents, fakeActionRunner, fakeTaskFactory); viewTitle = new ManagePackagesViewTitle(solution); viewModel = new ManagePackagesViewModel( packagesViewModels, viewTitle, packageManagementEvents, userPrompts); fakeTaskFactory.ExecuteAllFakeTasks(); }
void CreateViewModel( FakePackageManagementSolution solution, IThreadSafePackageManagementEvents packageManagementEvents) { fakeTaskFactory = new FakeTaskFactory(); fakeLicenseAcceptanceService = new FakeLicenseAcceptanceService(); fakeSelectProjectsService = new FakeSelectProjectsService(); userPrompts = new ManagePackagesUserPrompts( packageManagementEvents, fakeLicenseAcceptanceService, fakeSelectProjectsService); fakeActionRunner = new FakePackageActionRunner(); packagesViewModels = new PackagesViewModels( solution, fakeRegisteredPackageRepositories, packageManagementEvents, fakeActionRunner, fakeTaskFactory); viewTitle = new ManagePackagesViewTitle(solution); viewModel = new ManagePackagesViewModel( packagesViewModels, viewTitle, packageManagementEvents, userPrompts); fakeTaskFactory.ExecuteAllFakeTasks(); }
void CreateViewModel(FakePackageManagementSolution solution, IThreadSafePackageManagementEvents packageManagementEvents) { taskFactory = new FakeTaskFactory(); fakeLicenseAcceptanceSevice = new FakeLicenseAcceptanceService(); fakeActionRunner = new FakePackageActionRunner(); viewModel = new ManagePackagesViewModel( solution, fakeRegisteredPackageRepositories, packageManagementEvents, fakeActionRunner, fakeLicenseAcceptanceSevice, taskFactory); taskFactory.ExecuteAllFakeTasks(); }
void CompleteReadPackagesTask() { taskFactory.ExecuteAllFakeTasks(); }
void CreateViewModel(FakePackageManagementService packageManagementService) { taskFactory = new FakeTaskFactory(); viewModel = new AddPackageReferenceViewModel(packageManagementService, taskFactory); taskFactory.ExecuteAllFakeTasks(); }
void CreateViewModel(FakePackageManagementService packageManagementService) { taskFactory = new FakeTaskFactory(); viewModel = new AddPackageReferenceViewModel(packageManagementService, taskFactory); taskFactory.ExecuteAllFakeTasks(); }