Example #1
0
 public UpdateStatusModelDecorator(
     [NotNull] IConfigFilenameProvider decoratee,
     [NotNull] IStatusFullModel statusModel)
 {
     Guard.NotNull(decoratee, nameof(decoratee));
     Guard.NotNull(statusModel, nameof(statusModel));
     this.decoratee   = decoratee;
     this.statusModel = statusModel;
 }
Example #2
0
 public UpdateDelayStatusModelDecorator(
     [NotNull] IDelayService decoratee,
     [NotNull] IStatusFullModel statusModel)
 {
     Guard.NotNull(decoratee, nameof(decoratee));
     Guard.NotNull(statusModel, nameof(statusModel));
     this.decoratee   = decoratee;
     this.statusModel = statusModel;
 }
Example #3
0
        public ProjectCollectionViewModel(
            [NotNull] IProjectViewModelFactory projectViewModelFactory,
            [NotNull] IStatusFullModel statusModel,
            [NotNull] IFileSearch fileSearch,
            [NotNull] IConfigurationService configurationService,
            [NotNull] IDelayService delayService)
        {
            Guard.NotNull(statusModel, nameof(statusModel));
            Guard.NotNull(projectViewModelFactory, nameof(projectViewModelFactory));
            Guard.NotNull(fileSearch, nameof(fileSearch));
            Guard.NotNull(configurationService, nameof(configurationService));
            Guard.NotNull(delayService, nameof(delayService));

            this.statusModel             = statusModel;
            this.projectViewModelFactory = projectViewModelFactory;
            this.fileSearch           = fileSearch;
            this.configurationService = configurationService;
            this.delayService         = delayService;

            Projects   = new ObservableCollection <ProjectViewModel>();
            Initialize = new CapturingExceptionAsyncCommand(async _ => await LoadProjectsAsync());
        }
 public StatusModelLogDecorator([NotNull] IStatusFullModel decoratee)
 {
     Guard.NotNull(decoratee, nameof(decoratee));
     this.decoratee = decoratee;
 }