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

            _query = new GetOtherCoursesToAddQuery("learnerId");
        }
Esempio n. 2
0
        public void LearningPathIdIsValid_ShouldNotHaveError()
        {
            _query = new GetOtherCoursesToAddQuery("learningPathId");

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

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