Exemple #1
0
        public void WhenHaveValidExpirationDate_ShouldHaveNoError()
        {
            var sut = new PaymentRequestModelValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.ExpirationDate, DateTime.Now.AddDays(1));
        }
Exemple #2
0
        public void WhenHaveValidCreditCardNumber_ShouldHaveNoError()
        {
            var sut = new PaymentRequestModelValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.CreditCardNumber, GetValidCardNumber());
        }
Exemple #3
0
        public void WhenHaveValidCardHolder_ShouldHaveNoError()
        {
            var sut = new PaymentRequestModelValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.CardHolder, "Test");
        }
Exemple #4
0
        public void WhenValidAmount_ShouldHaveNoError()
        {
            var sut = new PaymentRequestModelValidator();

            sut.ShouldNotHaveValidationErrorFor(m => m.Amount, 0.5);
        }