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

            _query = new GetLearningPathCoursesQuery("learnerId");
        }
Exemplo n.º 2
0
        public void LearningPathIdIsValid_ShouldNotHaveError()
        {
            _query = new GetLearningPathCoursesQuery("learningPathId");

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

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