public PaymentCommandHandler(IPaymentProcessor paymentProcessor, PaymentCommandValidator paymentCommandValidator, IPaymentCommandRepository paymentCommandRepository) { _paymentProcessor = paymentProcessor; _paymentCommandValidator = paymentCommandValidator; _paymentCommandRepository = paymentCommandRepository; }
public PaymentCommandValidatorTests() { var fixture = new Fixture(); _validator = new PaymentCommandValidator(); _validPaymentCommand = fixture.Build <PaymentCommand>() .With(c => c.CardNumber, "1234567898765432") .With(c => c.ExpiryMonth, DateTime.Now.Month) .With(c => c.ExpiryYear, DateTime.Now.Year + 1) .With(c => c.CurrencyCode, "GBP") .Create(); }