Exemplo n.º 1
0
 public void Initialize()
 {
     priceQuery = new InmemoryCatalog(
         ItemReference.AReference().WithItemCode("APPLE").WithUnitPrice(1.20).Build(),
         ItemReference.AReference().WithItemCode("BANANA").WithUnitPrice(1.90).Build()
         );
 }
Exemplo n.º 2
0
 public PriceController(ICommandBus commandBus, IPriceQuery priceQuery)
 {
     this.commandBus = commandBus;
     this.priceQuery = priceQuery;
 }