public PointOfSaleServiceBuilder WithQuery(ScanBarcodeQuery query) { this.query = query; return(this); }
public PointOfSaleService(ScanBarcodeQuery query, TransactionIdGenerator generator) { this.query = query; this.generator = generator; this.scannedItems = new List <Item>(); }
public PointOfSaleServiceBuilder() { this.query = new InMemoryItemRegistry(); this.generator = new Mock <TransactionIdGenerator>().Object; this.display = new Mock <Display>().Object; }