Exemplo n.º 1
0
 public void SetUp()
 {
     Vm    = new VendingMachine.VendingMachine();
     State = new VendingMachine.States.NoMoneyInsertedState(Vm);
     Iq    = new ItemQueue(1.5);
     Iq.QueueItem(new Item("TestName", "TestFlavor", "TestWrapperColor"));
     Vm.ItemQueues.Add(QueueName, Iq);
 }
 public void SetUp()
 {
     Vm = new VendingMachine.VendingMachine();
     Iq = new ItemQueue(1.5);
     for (int i = 0; i < 5; i++)
     {
         Iq.QueueItem(new Item("TestName" + i, "TestFlavor" + i, "TestWrapperColor" + i));
     }
     Vm.ItemQueues.Add(QueueName, Iq);
 }