/// <summary> /// Constructs the class /// </summary> /// <param name="displayPanel">The display panel.</param> /// <param name="readKeypadInput">The key pad input.</param> /// <param name="productRepository">The product repository.</param> /// <param name="vendingMessageRepository">The message repository.</param> public OrderPanel(IDisplayPanel displayPanel, IReadKeypadInput readKeypadInput, IProductRepository productRepository, IVendingMessageRepository vendingMessageRepository) { _vendingMessageRepository = vendingMessageRepository; _displayPanel = displayPanel; _productRepository = productRepository; _readKeypadInput = readKeypadInput; }
/// <summary> /// Payment coin receiver simulator /// </summary> /// <param name="displayPanel">The display panel.</param> /// <param name="readKeypadInput">The key pad input.</param> /// <param name="vendingMessageRepository">The message repositories.</param> public PaymentReceiver(IDisplayPanel displayPanel, IReadKeypadInput readKeypadInput, IVendingMessageRepository vendingMessageRepository) { _vendingMessageRepository = vendingMessageRepository; _displayPanel = displayPanel; _readKeypadInput = readKeypadInput; }