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