public void GetQuestionTest(int srno, int utID, int currID) { userService.GetQuestionBySrNo(3, 9).Returns(userTestAnswer.First()); userService.AddTotestlog(9, 2).Returns(true); Entities.userTestAnswer result = bService.GetNextQuestion(srno, utID, currID); Assert.AreEqual(9, result.userTestID); }
public IHttpActionResult Get(int id, int utID, int currentQues) { try { return(Ok(bllService.GetNextQuestion(id, utID, currentQues))); } catch (Exception) { return(BadRequest()); } }