public PointOfSaleServiceBuilder WithQuery(ScanBarcodeQuery query)
 {
     this.query = query;
     return(this);
 }
예제 #2
0
 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;
 }