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