public void NameIsNull_ReturnsError() { var editModel = _fixtue.Build <GenreEditModel>() .With(x => x.Name, null) .Create(); _validator.ShouldHaveValidationErrorFor(x => x.Name, editModel); }
public void ShouldFailIfNoNameEntered() { _validator.ShouldHaveValidationErrorFor(r => r.Name, null as string); }