public ToDoListController(IToDoListModelService toDoListModelService, IUserService userService) { Guard.WhenArgument(toDoListModelService, "To-Do List service").IsNull().Throw(); Guard.WhenArgument(userService, "User service").IsNull().Throw(); this.toDoListModelService = toDoListModelService; this.userService = userService; }
public TaskController(IToDoListModelService toDoListModelService, IToDoListTaskService taskService) { Guard.WhenArgument(toDoListModelService, "To-Do ListModel Service").IsNull().Throw(); Guard.WhenArgument(taskService, "Task Service").IsNull().Throw(); this.toDoListModelService = toDoListModelService; this.taskService = taskService; }