public void SentenceTaskServiceTest_Edit_valid() { var model = new SentenceTask { SentenceTaskId = 1, Sentence = "Sentence", Category = "Category", Translate = "Translate" }; var expected = rep.Edit(model); var actual = service.Edit(model); Assert.AreEqual(expected, actual); }
public void SentenceTaskControllerTest_EditTask() { var expected = service.Edit(new SentenceTask()); var actual = controller.EditTask(new SentenceTask()); Assert.AreEqual(expected, actual); }
public bool EditTask(SentenceTask task) { return(service.Edit(task)); }