コード例 #1
0
        public void ValidCourseId_ShouldNotHaveError()
        {
            var query = new GetCourseContentQuery {
                CourseId = "courseId"
            };

            _sut.ShouldNotHaveValidationErrorFor(x => x.CourseId, query);
        }
コード例 #2
0
 public void SetUp()
 {
     _service = new Mock <IGetCourseContentService>();
     _sut     = new GetCourseContentQueryHandler(_service.Object);
     _query   = new GetCourseContentQuery {
         CourseId = "courseId"
     };
 }
コード例 #3
0
        public void EmptyOrNullCourseId_ShouldHaveError(string courseId)
        {
            var query = new GetCourseContentQuery {
                CourseId = courseId
            };

            _sut.ShouldHaveValidationErrorFor(x => x.CourseId, query);
        }