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)); }
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; }
/// <summary> /// Constructs a new ViewTasksUseCase /// </summary> public ViewTasksUseCase(BasicTaskManager taskManager, ITaskItemRepositoryFactory taskItemRepositoryFactory) { this.taskManager = taskManager; this.taskItemRepositoryFactory = taskItemRepositoryFactory; }