public void InvalidTest(OtherCustomerValue other, string fieldName, string errorDescription) { var result = validator.Validate(other); result.IsSuccess.Should().BeFalse(); result.ErrorType.Should().Be(fieldName); result.ErrorDescription.Should().Be(errorDescription); }
public void ValidTest(OtherCustomerValue other) { validator.Validate(other).IsSuccess.Should().BeTrue(); }