public void Setup(BenchmarkContext context) { ITasksRepository _repo = new TaskManagerDataAccess(); _taskService = new TaskManagerBL(_repo); _newTask = new TaskEntity { TaskId = 0, TaskName = "Coding", ParentId = 1, ParentName = "Project Task", Priority = 2, ActiveInd = "Y", StartDate = new DateTime(2018, 04, 21), EndDate = new DateTime(2018, 08, 26), CreatedBy = "PerfTest" }; _taskToBeUpdated = new TaskEntity { TaskId = 1, TaskName = "Analysis", ParentId = 1, ParentName = "Project Task", Priority = 3, ActiveInd = "Y", StartDate = new DateTime(2018, 04, 18), EndDate = new DateTime(2018, 08, 20) }; }
public TaskManagerController(ITaskManagerBL manager) { _manager = manager; }
public TasksController(ITaskManagerBL service) { _tasksService = service; }
public TaskController(ITaskManagerBL taskBL) { _taskManagerBL = taskBL; }
public TaskController() { _taskManagerBL = new TaskManagerBL(); }