public void Constructor_AnswerDomainService_Pos()
        {
            AnswerDomainService answerService = new AnswerDomainService(answerRepository.Object, exceptionManagerAdapter.Object, loggingServiceAdapter.Object);

            Assert.AreEqual(answerRepository.Object, answerService.AnswerRepository);
            Assert.AreEqual(exceptionManagerAdapter.Object, answerService.ExceptionManager);
            Assert.AreEqual(loggingServiceAdapter.Object, answerService.LoggingService);
        }
        public void Verify_If_Quiz_Repository_Errors_GetAnswersByQuizEntryId_Neg()
        {
            List <Answer> answerList = new List <Answer>();

            answerRepository.Setup(ar => ar.GetAnswerByQuizEntryId(It.IsAny <int>())).Throws(new Exception());
            IAnswerDomainService answerService = new AnswerDomainService(answerRepository.Object, exceptionManagerAdapter.Object, loggingServiceAdapter.Object);

            Assert.AreEqual(answerList, answerService.GetAnswersByQuizEntryId(1));
            answerRepository.Verify(ar => ar.GetAnswerByQuizEntryId(1));
        }
        public void Verify_If_QuizEntry_Exists_GetAnswersByQuizEntryId_Pos()
        {
            List <Answer> answerList = new List <Answer>();

            answerList.Add(new Answer()
            {
                Id = 2, QuizEntryId = 1
            });
            answerRepository.Setup(ar => ar.GetAnswerByQuizEntryId(It.IsAny <int>())).Returns(answerList);
            AnswerDomainService answerService = new AnswerDomainService(answerRepository.Object, exceptionManagerAdapter.Object, loggingServiceAdapter.Object);

            Assert.AreEqual(answerList, answerService.GetAnswersByQuizEntryId(1));
        }