public void SetUp() { _service = new Mock <IGetLearningPathCoursesService>(); _sut = new GetLearningPathCoursesQueryHandler(_service.Object); _query = new GetLearningPathCoursesQuery("learnerId"); }
public void LearningPathIdIsValid_ShouldNotHaveError() { _query = new GetLearningPathCoursesQuery("learningPathId"); _sut.ShouldNotHaveValidationErrorFor(x => x.LearningPathId, _query); }
public void LearningPathIdIsNullOrEmpty_ShouldHaveError(string learningPathId) { _query = new GetLearningPathCoursesQuery(learningPathId); _sut.ShouldHaveValidationErrorFor(x => x.LearningPathId, _query); }