コード例 #1
0
 [InlineData("    ")] // No whitespace
 public void Theory_EntityBaseValidation_FirstName_CannotBeBlank(string name) =>
 _validator.ShouldHaveValidationErrorFor(entity => entity.Name, name)
 .WithErrorCode(ErrorCode.StringMustNotBeNullOrEmpty.GetErrorCodeString())
 .WithErrorMessage("Invalid Name: String cannot be null or empty");