public KanbanBoardController(IKanbanBoardService kanbanBoardService) { if(kanbanBoardService == null) { throw new ArgumentNullException("kanbanBoardService"); } _kanbanBoardService = kanbanBoardService; }
/// <summary> /// Constructor for accepting dependency injection. Dependencies are : /// <see cref="IToDoService"/>, /// <see cref="IKanbanBoardService"/>, /// <see cref="INoteService"/> /// </summary> public DashboardController( IToDoService toDoService, IKanbanBoardService kanbanBoardService, INoteService noteService ) { _toDoService = toDoService; _kanbanBoardService = kanbanBoardService; _noteService = noteService; }
public DashboardController(IUserService userService, IKanbanBoardService kanbanBoardService) { if (userService == null) { throw new ArgumentNullException("userService"); } if (kanbanBoardService == null) { throw new ArgumentNullException("kanbanBoardService"); } _userService = userService; _kanbanBoardService = kanbanBoardService; }
/// <summary> /// Constructor for getting dependency injection. Dependencies : <see cref="IKanbanBoardService"/> /// </summary> public KanbanBoardController(IKanbanBoardService kanbanService) { _kanbanService = kanbanService; }
public KanbanBoardController(IKanbanBoardService kanbanBoardService, IMapper mapper) { _kanbanBoardService = kanbanBoardService; _mapper = mapper; }