public void BenchMarkMethod_UpdateTask(BenchmarkContext context)
        {
            TaskDbService _dbSvc = new TaskDbService();

            TaskManager.DataLayer.Task updateTask = new TaskManager.DataLayer.Task();
            updateTask = _dbSvc.GetTaskById(16);
            updateTask.ParentTask.Parent_Task = "ParentTask6_Updt";
            _dbSvc.UpdateTask(updateTask);

            // _opCounter.Increment();
        }
        public void BenchMarkMethod_SaveTask(BenchmarkContext context)
        {
            TaskDbService _dbSvc = new TaskDbService();

            TaskManager.DataLayer.Task newtask = new TaskManager.DataLayer.Task()
            {
                Task1      = "Task6",
                Start_Date = new DateTime(2018, 09, 01),
                End_Date   = new DateTime(2018, 09, 10),
                Priority   = 17,
                ParentTask = new ParentTask()
                {
                    Parent_Task = "ParentTask6"
                }
            };
            _dbSvc.AddTask(newtask);

            //  _opCounter.Increment();
        }
 public void BenchMarkMethod_SearchTask(BenchmarkContext context)
 {
     TaskDbService _dbSvc = new TaskDbService();
     IEnumerable <TaskManager.DataLayer.Task> filteredTasks =
         _dbSvc.SearchTasksByParams(dtFrm: new DateTime(2018, 08, 14), dtTo: new DateTime(2018, 08, 22));
 }
 public void BenchMarkMethod_GetAllTasks(BenchmarkContext context)
 {
     TaskDbService _dbSvc = new TaskDbService();
     IEnumerable <TaskManager.DataLayer.Task> allTasks = _dbSvc.GetAllTasks().ToList();
     //  _opCounter.Increment();
 }