public DeleteTaskUseCaseFactory(
     ITaskItemRepositoryFactory taskItemRepositoryFactory,
     INotificationRepositoryFactory notificationRepositoryFactory,
     BasicTaskManager taskItemManager,
     BasicNotificationManager notificationManager)
 {
     this.taskItemRepositoryFactory     = taskItemRepositoryFactory ?? throw new ArgumentNullException(nameof(taskItemRepositoryFactory));
     this.notificationRepositoryFactory = notificationRepositoryFactory ?? throw new ArgumentNullException(nameof(notificationRepositoryFactory));
     this.taskItemManager     = taskItemManager ?? throw new ArgumentNullException(nameof(taskItemManager));
     this.notificationManager = notificationManager ?? throw new ArgumentNullException(nameof(notificationManager));
 }
Ejemplo n.º 2
0
 public CreateTaskUseCase(
     BasicTaskManager taskManager,
     BasicNotificationManager notificationManager,
     IClock clock,
     ITaskItemRepositoryFactory taskItemRepositoryFactory)
 {
     this.taskManager         = taskManager ?? throw new ArgumentNullException(nameof(taskManager));
     this.notificationManager = notificationManager ?? throw new ArgumentNullException(nameof(notificationManager));
     this.clock = clock ?? throw new ArgumentNullException(nameof(clock));
     this.taskItemRepositoryFactory = taskItemRepositoryFactory ?? throw new ArgumentNullException(nameof(taskItemRepositoryFactory));
 }
 public ViewTasksUseCaseFactory(BasicTaskManager taskManager, ITaskItemRepositoryFactory taskItemRepositoryFactory)
 {
     this.taskItemRepositoryFactory = taskItemRepositoryFactory ?? throw new ArgumentNullException(nameof(taskItemRepositoryFactory));
     this.taskManager = taskManager;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructs a new ViewTasksUseCase
 /// </summary>
 public ViewTasksUseCase(BasicTaskManager taskManager, ITaskItemRepositoryFactory taskItemRepositoryFactory)
 {
     this.taskManager = taskManager;
     this.taskItemRepositoryFactory = taskItemRepositoryFactory;
 }