use of uk.gov.pay.connector.gateway.PaymentProviders in project pay-connector by alphagov.
the class EventFactoryTest method setUp.
@Before
public void setUp() {
chargeService = mock(ChargeService.class);
refundDao = mock(RefundDao.class);
refundService = mock(RefundService.class);
chargeEventDao = mock(ChargeEventDao.class);
paymentProviders = mock(PaymentProviders.class);
PaymentProvider paymentProvider = new SandboxPaymentProvider();
when(paymentProviders.byName(any(PaymentGatewayName.class))).thenReturn(paymentProvider);
eventFactory = new EventFactory(chargeService, refundDao, refundService, chargeEventDao, paymentProviders);
}
Aggregations