Ejemplo n.º 1
0
        public async Task ShouldCreateAssessment()
        {
            _assessmentValidator.Setup(u => u.AssessmentDurationIsGreaterThanZero(_assessmentRequestModel))
            .Returns(true);

            _assessmentRepo.Setup(u => u.CreateAssessmentAsync(_assessmentRequestModel, userId))
            .Returns(() => Task.FromResult(_assessmentResponseModel));


            var response = await _assessmentManager.CreateAssessment(_assessmentRequestModel, userId);

            Assert.NotNull(response.Id);
        }