コード例 #1
0
        public void ShouldGetResultByChapterNameAndNumberOfQuestions()
        {
            var result = sut.GetNumberOfQuestionsByChapter("Rights and Responsibilities of Citizenship", 5);

            Assert.That(result.Data.Count(), Is.EqualTo(5));
        }
コード例 #2
0
 public IResult <IEnumerable <QuestionAnswers> > GetNumberOfQuestionsByChapter(string chapterName, int numberOfQuestions)
 {
     return(_repository.GetNumberOfQuestionsByChapter(chapterName, numberOfQuestions));
 }