コード例 #1
0
        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)
            };
        }
コード例 #2
0
 public TaskManagerController(ITaskManagerBL manager)
 {
     _manager = manager;
 }
コード例 #3
0
 public TasksController(ITaskManagerBL service)
 {
     _tasksService = service;
 }
コード例 #4
0
 public TaskController(ITaskManagerBL taskBL)
 {
     _taskManagerBL = taskBL;
 }
コード例 #5
0
 public TaskController()
 {
     _taskManagerBL = new TaskManagerBL();
 }