public void PaymentRequestDtoValidatorHasErrorTooLongCurrency() { var validator = new PaymentRequestDtoValidator(); validator.ShouldHaveValidationErrorFor(x => x.Currency, "GBPP"); }
public void PaymentRequestDtoValidatorHasErrorNullCurrency() { var validator = new PaymentRequestDtoValidator(); validator.ShouldHaveValidationErrorFor(x => x.Currency, null as string); }
public void PaymentRequestDtoValidatorHasErrorEmptyCurrency() { var validator = new PaymentRequestDtoValidator(); validator.ShouldHaveValidationErrorFor(x => x.Currency, string.Empty); }
public void PaymentRequestDtoValidatorHasErrorForTooSmallAmount() { var validator = new PaymentRequestDtoValidator(); validator.ShouldHaveValidationErrorFor(x => x.Amount, 0.001); }