コード例 #1
0
        public void Initialize()
        {
            RestbucksResources.BaseAddress = "http://restbucks.net";
            _repository = new InMemoryOrderRepository();
            var mapper = new PaymentRepresentationMapper();

            _sut = new PaymentResource(new PaymentActivity(_repository, mapper));
        }
コード例 #2
0
 public PaymentActivity(IOrderRepository repository, PaymentRepresentationMapper paymentMapper)
 {
     _repository    = repository;
     _paymentMapper = paymentMapper;
 }