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

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

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

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