Example #1
0
    public void Should_have_error_when_Name_is_null()
    {
        var model = new PermissionDto {
            Name = null
        };
        var result = validator.TestValidate(model);

        result.ShouldHaveValidationErrorFor(p => p.Name);
    }