private static void Main(string[] args)
        {
            IDisplayMessage displayMessage = new DisplayMessage();

            IButtonOrder buttonOrder = new ButtonOrder(displayMessage);

            IInsertCredit insertCredit = new InsertCredit(displayMessage);

            IInventory inventory = new Inventory();

            IReturnCash returnCash = new ReturnCash(displayMessage);

            ISmsOrder smsOrder = new SmsOrder(displayMessage);

            IVendingMachine sodaMachineService = new SodaMachineService(
                buttonOrder,
                displayMessage,
                insertCredit,
                inventory,
                returnCash,
                smsOrder);

            sodaMachineService.StartService();
        }
Exemplo n.º 2
0
 public string GetButtonOrder()
 {
     return(ButtonOrder.ToString());
 }
 private void CreateSystemUnderTest()
 {
     systemUnderTest = new ButtonOrder(displayMessageMock);
 }