Пример #1
0
        public void GetQuestions()
        {
            var res = questionRepo.GetAllAsync().Result;

            int count = res.Count();

            Assert.AreEqual(1, count);
        }
Пример #2
0
        public async Task <OperationResult <IEnumerable <question> > > GetAllAsync()
        {
            IEnumerable <question> questions = await questionRepo.GetAllAsync();

            return(new OperationResult <IEnumerable <question> >()
            {
                Success = true, Message = Messages.QUESTIONS_SUCCESS, Result = questions
            });
        }