public void Have_error_when_CatalogItemId_is_negative() => DeleteCatalogItemRequestValidator .ShouldHaveValidationErrorFor(aDeleteCatalogItemRequest => aDeleteCatalogItemRequest.CatalogItemId, -1);
public void Setup() => DeleteCatalogItemRequestValidator = new DeleteCatalogItemRequestValidator();
public void Be_Valid() { ValidationResult validationResult = DeleteCatalogItemRequestValidator.TestValidate(DeleteCatalogItemRequest); validationResult.IsValid.Should().BeTrue(); }