Exemplo n.º 1
0
        public KanbanBoardController(IKanbanBoardService kanbanBoardService)
        {
            if(kanbanBoardService == null)
            {
                throw new ArgumentNullException("kanbanBoardService");
            }

            _kanbanBoardService = kanbanBoardService;
        }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
        public DashboardController(IUserService userService, IKanbanBoardService kanbanBoardService)
        {
            if (userService == null)
            {
                throw new ArgumentNullException("userService");
            }

            if (kanbanBoardService == null)
            {
                throw new ArgumentNullException("kanbanBoardService");
            }

            _userService = userService;
            _kanbanBoardService = kanbanBoardService;
        }
Exemplo n.º 4
0
 /// <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;
 }