Beispiel #1
0
        public void PaymentRequestDtoValidatorHasErrorTooLongCurrency()
        {
            var validator = new PaymentRequestDtoValidator();

            validator.ShouldHaveValidationErrorFor(x => x.Currency, "GBPP");
        }
Beispiel #2
0
        public void PaymentRequestDtoValidatorHasErrorNullCurrency()
        {
            var validator = new PaymentRequestDtoValidator();

            validator.ShouldHaveValidationErrorFor(x => x.Currency, null as string);
        }
Beispiel #3
0
        public void PaymentRequestDtoValidatorHasErrorEmptyCurrency()
        {
            var validator = new PaymentRequestDtoValidator();

            validator.ShouldHaveValidationErrorFor(x => x.Currency, string.Empty);
        }
Beispiel #4
0
        public void PaymentRequestDtoValidatorHasErrorForTooSmallAmount()
        {
            var validator = new PaymentRequestDtoValidator();

            validator.ShouldHaveValidationErrorFor(x => x.Amount, 0.001);
        }