public void ValidCourseId_ShouldNotHaveError() { var query = new GetCourseContentQuery { CourseId = "courseId" }; _sut.ShouldNotHaveValidationErrorFor(x => x.CourseId, query); }
public void SetUp() { _service = new Mock <IGetCourseContentService>(); _sut = new GetCourseContentQueryHandler(_service.Object); _query = new GetCourseContentQuery { CourseId = "courseId" }; }
public void EmptyOrNullCourseId_ShouldHaveError(string courseId) { var query = new GetCourseContentQuery { CourseId = courseId }; _sut.ShouldHaveValidationErrorFor(x => x.CourseId, query); }