Ejemplo n.º 1
0
        internal void fillCoinContainer()
        {
            Random random = new Random();

            decimal[] coinsToInsert = new decimal[] { 0.1M, 0.2M, 0.5M, 1M, 2M, 5M };
            while (TotalVendingMachineCoins.Count < 50)
            {
                TotalVendingMachineCoins.Add(coinsToInsert[random.Next(0, 6)]);
            }
        }
Ejemplo n.º 2
0
 internal decimal GetTotalMachineCoins()
 {
     return(TotalVendingMachineCoins.Sum());
 }