Beispiel #1
0
 public ProgressManagerViewModelTests()
 {
     _progressIndicatorFactory = Substitute.For <IProgressIndicatorFactory>();
     _progressIndicator        = Substitute.For <IProgressIndicator>();
     _progressIndicatorFactory.CreateProgressIndicator()
     .Returns(_progressIndicator);
     _busyProvider        = Substitute.For <IBusyProvider>();
     _progressItemActions = new List <Func <Task> >();
     _viewModel           = new ProgressManagerViewModel(_progressIndicatorFactory, _busyProvider);
 }
 public ProgressManagerViewModelTests()
 {
     _progressIndicatorFactory = Substitute.For<IProgressIndicatorFactory>();
     _progressIndicator = Substitute.For<IProgressIndicator>();
     _progressIndicatorFactory.CreateProgressIndicator()
         .Returns(_progressIndicator);
     _busyProvider = Substitute.For<IBusyProvider>();
     _progressItemActions = new List<Func<Task>>();
     _viewModel = new ProgressManagerViewModel(_progressIndicatorFactory, _busyProvider);
 }