public void Delete() { TaskData tasksData = TasksDataRepository.RetrieveByPK(taskDataIdDelete); TasksDataRepository.Delete(tasksData); Assert.Greater(TasksDataRepository.SaveChanges(), 0); }
public void Update() { TaskData tasksData = TasksDataRepository.RetrieveByPK(taskDataIdUpdate); tasksData.DateModified = DateTime.Now; TasksDataRepository.Update(tasksData); Assert.Greater(TasksDataRepository.SaveChanges(), 0); }
public void RetrieveTaskFromTaskData() { Tasks tasks = TasksDataRepository.RetrieveByPK(taskDataIdAdd).Tasks; JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings(); jsonSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; Console.Write(JsonConvert.SerializeObject(tasks, jsonSerializerSettings)); Assert.NotNull(tasks); }