コード例 #1
0
        public void Should_not_have_error_when_subject_is_specified()
        {
            var model = new SendPrivateMessageModel();

            model.Subject = "some comment";
            _validator.ShouldNotHaveValidationErrorFor(x => x.Subject, model);
        }
コード例 #2
0
        public void ShouldNotHaveErrorWhenSubjectIsSpecified()
        {
            var model = new SendPrivateMessageModel
            {
                Subject = "some comment"
            };

            _validator.ShouldNotHaveValidationErrorFor(x => x.Subject, model);
        }