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 MakePaymentV1ValidatorShould()
 {
     clock.Setup(a => a.UtcNow()).Returns(DateTimeOffset.UtcNow);
     validator = new MakePaymentV1Validator(clock.Object);
 }