public void Initialize()
 {
     RestbucksResources.BaseAddress = "http://restbucks.net";
     _repository = new InMemoryOrderRepository();
     var mapper = new ReceiptRepresentationMapper();
     var orderMapper = new OrderRepresentationMapper(new ItemRepresentationMapper());
     _sut = new ReceiptResource(new ReadReceiptActivity(_repository, mapper),
         new CompleteOrderActivity(_repository, orderMapper));
 }
 public CreateOrderActivity(IOrderRepository repository, OrderRepresentationMapper orderRepresentationMapper)
 {
     _repository = repository;
     _orderRepresentationMapper = orderRepresentationMapper;
 }