Example #1
0
        public void Should_have_validation_error_when_content_is_empty()
        {
            var command = Fixture.Build <UpdateReply>().With(x => x.Content, string.Empty).Create();

            var sut = new UpdateReplyValidator();

            sut.ShouldHaveValidationErrorFor(x => x.Content, command);
        }
 public EfUpdateReplyCommand(ProjectForumContext context, IMapper mapper, UpdateReplyValidator validator)
 {
     _context   = context;
     _mapper    = mapper;
     _validator = validator;
 }