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