public void PosTaskTest() { //Arrange TaskCrud taskcrud = new TaskCrud(); //Act TaskInformation task = new TaskInformation(); task.IsTaskCompleted = 0; task.Priority = 4; task.ProjectId = 1; task.TaskId = 0; task.TaskDescription = "Test Child"; task.UserId = 1; task.StartDate = DateTime.Parse("02/01/2018"); task.EndDate = DateTime.Parse("02/01/2018"); TaskInformation value = taskcrud.AddTask(task); //Assert if (value != null) { Assert.AreEqual(value.TaskDescription, task.TaskDescription); } else { Assert.IsNotNull(value);//Arrange } }
public void GetTasksThroughput_ThroughputMode(BenchmarkContext context) { TaskCrud tasks = new TaskCrud(); List <TaskManager.DAL.TaskInformation> task = tasks.GetAllTasks().ToList(); addCounter.Increment(); }
public void GetTaskTest() { //Arrange TaskCrud taskcrud = new TaskCrud(); //Act TaskInformation task = taskcrud.GetTask(1); //Assert if (task != null) { Assert.AreEqual(1, task.TaskId); } else { Assert.IsNotNull(task); } }
public TaskController() { TaskDetailsGetter = new TaskCrud(); }