public TaskController(IAddTaskMapper addTaskMapper, IRetrieveTaskListMapper retrieveTaskListMapper, IEditTaskMapper editTaskMapper, IDeleteTaskMapper deleteTaskMapper, IHttpContextWrapper httpContextWrapper) { _addTaskMapper = addTaskMapper; _retrieveTaskListMapper = retrieveTaskListMapper; _editTaskMapper = editTaskMapper; _deleteTaskMapper = deleteTaskMapper; _httpContextWrapper = httpContextWrapper; }
public void TestInitialize() { _addTaskMapper = MockRepository.GenerateStrictMock <IAddTaskMapper>(); _retrieveTaskListMapper = MockRepository.GenerateStrictMock <IRetrieveTaskListMapper>(); _editTaskMapper = MockRepository.GenerateStrictMock <IEditTaskMapper>(); _deleteTaskMapper = MockRepository.GenerateStrictMock <IDeleteTaskMapper>(); _httpContextWrapper = MockRepository.GenerateStrictMock <IHttpContextWrapper>(); _taskController = new TaskController(_addTaskMapper, _retrieveTaskListMapper, _editTaskMapper, _deleteTaskMapper, _httpContextWrapper); }