public void SetUp()
        {
            _service = new Mock <IGetLearningPathCoursesService>();
            _sut     = new GetLearningPathCoursesQueryHandler(_service.Object);

            _query = new GetLearningPathCoursesQuery("learnerId");
        }
예제 #2
0
        public void LearningPathIdIsValid_ShouldNotHaveError()
        {
            _query = new GetLearningPathCoursesQuery("learningPathId");

            _sut.ShouldNotHaveValidationErrorFor(x => x.LearningPathId, _query);
        }
예제 #3
0
        public void LearningPathIdIsNullOrEmpty_ShouldHaveError(string learningPathId)
        {
            _query = new GetLearningPathCoursesQuery(learningPathId);

            _sut.ShouldHaveValidationErrorFor(x => x.LearningPathId, _query);
        }