public void validate_not_expired_card()
        {
            var now           = new DateTimeOffset(new DateTime(2019, 5, 31));
            var specificClock = new Mock <IClock>(MockBehavior.Strict);

            specificClock.Setup(a => a.UtcNow()).Returns(now);

            var expiryValidator = new MakePaymentV1Validator(specificClock.Object);

            expiryValidator.ShouldNotHaveValidationErrorFor(a => a.ExpiryYear,
                                                            new MakePaymentV1 {
                ExpiryYear = 2019, ExpiryMonth = 5
            });
        }
 public void validate_valid_card_number(string cardNumber)
 {
     validator.ShouldNotHaveValidationErrorFor(a => a.CardNumber, cardNumber);
 }