public void UnrecognizedBarCode()
        {
            var pos = new PointOfSaleTerminal(display, new InMemoryGateway());

            pos.OnBarcode("bad");

            display.Displayed.Should().Be("Error");
        }
        public void RecognizedBarCode()
        {
            var gateway = new InMemoryGateway();

            gateway.AddItem(new Item {
                Barcode = "good", Price = 2.22
            });
            var pos = new PointOfSaleTerminal(display, gateway);

            pos.OnBarcode("good");

            display.Displayed.Should().Be("$2.22");
        }