void CreateViewModel(FakePackageManagementSolution solution) { viewModel = new TestablePackageViewModel(solution); fakePackage = viewModel.FakePackage; this.fakeSolution = solution; fakePackageManagementEvents = viewModel.FakePackageManagementEvents; fakeLogger = viewModel.FakeLogger; fakeInstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeInstallPackageAction; fakeUninstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeUninstallPackageAction; fakeActionRunner = viewModel.FakeActionRunner; }
void CreateViewModel(FakePackageManagementSolution solution) { viewModelParent = MockRepository.GenerateStub<IPackageViewModelParent>(); viewModel = new TestablePackageViewModel(viewModelParent, solution); fakePackage = viewModel.FakePackage; this.fakeSolution = solution; fakePackageManagementEvents = viewModel.FakePackageManagementEvents; fakeLogger = viewModel.FakeLogger; fakeUninstallPackageAction = solution.FakeProjectToReturnFromGetProject.FakeUninstallPackageAction; fakeActionRunner = viewModel.FakeActionRunner; }