void CreateViewModel(FakePackageManagementService packageManagementService)
        {
            taskFactory = new FakeTaskFactory();
            var messageReporter = new FakeMessageReporter();

            viewModel = new InstalledPackagesViewModel(packageManagementService, messageReporter, taskFactory);
        }
        void CreateViewModel()
        {
            packageManagementService = new FakePackageManagementService();
            taskFactory = new FakeTaskFactory();
            var messageReporter = new FakeMessageReporter();

            viewModel = new PackageUpdatesViewModel(packageManagementService, messageReporter, taskFactory);
        }
 public TestablePackageViewModel(FakePackageManagementService packageManagementService)
     : this(
         new FakePackage(),
         packageManagementService,
         new FakeLicenseAcceptanceService(),
         new FakeMessageReporter())
 {
 }
Example #4
0
 void CreateViewModel(FakePackageManagementService packageManagementService)
 {
     viewModel = new TestablePackageViewModel(packageManagementService);
     package   = viewModel.FakePackage;
     this.packageManagementService = packageManagementService;
     sourcePackageRepository       = packageManagementService.FakeActivePackageRepository;
     licenseAcceptanceService      = viewModel.FakeLicenseAcceptanceService;
     messageReporter = viewModel.FakeMessageReporter;
 }
 public TestablePackageViewModel(
     FakePackage package,
     FakePackageManagementService packageManagementService,
     FakeLicenseAcceptanceService licenseAcceptanceService,
     FakeMessageReporter messageReporter)
     : base(
         package,
         packageManagementService,
         licenseAcceptanceService,
         messageReporter)
 {
     this.FakePackage = package;
     this.FakePackageManagementService = packageManagementService;
     this.FakeLicenseAcceptanceService = licenseAcceptanceService;
     this.FakeMessageReporter          = messageReporter;
     this.FakeSourcePackageRepository  = FakePackageManagementService.FakeActivePackageRepository;
 }
 void CreateViewModel()
 {
     viewModel = new TestableUpdatedPackageViewModel();
     fakePackageManagementService = viewModel.FakePackageManagementService;
     sourcePackageRepository      = viewModel.FakeSourcePackageRepository;
 }
 void CreatePackageManagementService()
 {
     packageManagementService = new FakePackageManagementService();
 }
Example #8
0
 void CreateViewModel(FakePackageManagementService packageManagementService)
 {
     viewModel = new TestablePackagesViewModel(packageManagementService);
     this.packageManagementService = packageManagementService;
     taskFactory = viewModel.FakeTaskFactory;
 }
Example #9
0
 void CreateViewModel()
 {
     packageManagementService = new FakePackageManagementService();
     CreateViewModel(packageManagementService);
 }
 void CreateViewModel(FakePackageManagementService packageManagementService)
 {
     taskFactory = new FakeTaskFactory();
     viewModel   = new AddPackageReferenceViewModel(packageManagementService, taskFactory);
     taskFactory.ExecuteAllFakeTasks();
 }
Example #11
0
 void CreatePackageManagementService()
 {
     packageManagementService = new FakePackageManagementService();
     options             = packageManagementService.Options;
     aggregateRepository = packageManagementService.FakeAggregateRepository;
 }
 public TestablePackagesViewModel(FakePackageManagementService packageManagementService, FakeTaskFactory taskFactory)
     : base(packageManagementService, new FakeMessageReporter(), taskFactory)
 {
     FakePackageManagementService = packageManagementService;
     FakeTaskFactory = taskFactory;
 }
 public TestablePackagesViewModel(FakePackageManagementService packageManagementService)
     : this(packageManagementService, new FakeTaskFactory())
 {
 }