Exemplo n.º 1
0
 public HomeController(IAddComment addCommentCommand,
     IGetComments getCommentsQuery,
     IAddTodo addTodoCommand,
     IGetTodos getTodosQuery,
     IToggleTodo toggleTodoCommand,
     IClearTodos clearTodosCommand)
 {
     AddCommentCommand = addCommentCommand;
     GetCommentsQuery = getCommentsQuery;
     AddTodoCommand = addTodoCommand;
     GetTodosQuery = getTodosQuery;
     ToggleTodoCommand = toggleTodoCommand;
     ClearTodosCommand = clearTodosCommand;
 }
Exemplo n.º 2
0
 public ReadTodosQueryDelegetor(IGetAllTodos getAllTodosQuery, IGetTodos getTodosQuery)
 {
     _getAllTodosQuery = getAllTodosQuery;
     _getTodosQuery    = getTodosQuery;
 }