public ProgressManagerViewModel(IProgressIndicatorFactory progressIndicatorFactory, IBusyProvider busyProvider)
        {
            _progressIndicatorFactory = progressIndicatorFactory;
            _busyProvider             = busyProvider;

            Total     = CreateProgressItemCollection("Total");
            Completed = CreateProgressItemCollection("Completed");
            InError   = CreateProgressItemCollection("InError");
        }
        public ProgressManagerViewModel(IProgressIndicatorFactory progressIndicatorFactory, IBusyProvider busyProvider)
        {
            _progressIndicatorFactory = progressIndicatorFactory;
            _busyProvider = busyProvider;

            Total = CreateProgressItemCollection("Total");
            Completed = CreateProgressItemCollection("Completed");
            InError = CreateProgressItemCollection("InError");
        }
Пример #3
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);
 }