Completed Program.cs

This commit is contained in:
MarcUs7i 2024-11-18 09:13:37 +01:00
parent 1c36f1b03d
commit 2d94fe91ae

View file

@ -1,8 +1,46 @@
using System.Text;
using CoffeeVendingMachines;
// using CoffeeVendingMachines;
Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine($"*** Coffee Slot Machine ***{Environment.NewLine}");
// TODO
Run();
void Run()
{
CoffeeVendingMachine the_machine = new CoffeeVendingMachine("1st Floor");
//best way to insert coins :)
the_machine.InsertCoin(CoinType.Cent05);
the_machine.InsertCoin(CoinType.Cent05);
the_machine.InsertCoin(CoinType.Cent10);
the_machine.InsertCoin(CoinType.Cent10);
the_machine.InsertCoin(CoinType.Cent10);
the_machine.InsertCoin(CoinType.Cent20);
the_machine.InsertCoin(CoinType.Cent20);
the_machine.InsertCoin(CoinType.Cent20);
the_machine.InsertCoin(CoinType.Cent20);
the_machine.InsertCoin(CoinType.Cent20);
the_machine.InsertCoin(CoinType.Cent50);
the_machine.InsertCoin(CoinType.Cent50);
the_machine.InsertCoin(CoinType.Cent50);
the_machine.InsertCoin(CoinType.Cent50);
the_machine.InsertCoin(CoinType.Euro01);
the_machine.InsertCoin(CoinType.Euro01);
the_machine.InsertCoin(CoinType.Euro01);
the_machine.InsertCoin(CoinType.Euro02);
the_machine.InsertCoin(CoinType.Euro02);
the_machine.InsertCoin(CoinType.Euro02);
the_machine.SelectProduct("Capuccino", out CoinDepot[]? change, out int? remainder);
Console.WriteLine(the_machine);
}