public void Initialize() { RestbucksResources.BaseAddress = "http://restbucks.net"; _repository = new InMemoryOrderRepository(); var mapper = new PaymentRepresentationMapper(); _sut = new PaymentResource(new PaymentActivity(_repository, mapper)); }
public PaymentActivity(IOrderRepository repository, PaymentRepresentationMapper paymentMapper) { _repository = repository; _paymentMapper = paymentMapper; }