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

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

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

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