Example #1
0
        public void SentenceTaskControllerTest_GetTask()
        {
            var expected = service.GetTask("Category1", "1");
            var actual   = controller.GetTask("Category1", "1");

            Assert.AreEqual(expected.SentenceTaskId, actual.SentenceTaskId);
        }
 public void SentenceTaskServiceTest_GetTask_invalid()
 {
     try
     {
         service.GetTask(null, null);
     }
     catch (Exception e)
     {
         Assert.AreEqual("Invalid model", e.Message);
     }
 }
Example #3
0
 public SentenceTask GetTask(string category, string indexes)
 {
     return(service.GetTask(category, indexes));
 }