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);
        }
Example #2
0
        public void SentenceTaskControllerTest_EditTask()
        {
            var expected = service.Edit(new SentenceTask());
            var actual   = controller.EditTask(new SentenceTask());

            Assert.AreEqual(expected, actual);
        }
Example #3
0
 public bool EditTask(SentenceTask task)
 {
     return(service.Edit(task));
 }