static void Main(string[] args) { President bob = new President() { Naam = "bob" }; List <Minister> ministers = new List <Minister>(); ministers.Add(new Minister() { Naam = "Jeff" }); ministers.Add(new Minister() { Naam = "Jos" }); ministers.Add(new Minister() { Naam = "Jan" }); Land america = new Land(); america.MaakRegering(bob, ministers); america.JaarVerder(); america.JaarVerder(); america.JaarVerder(); america.JaarVerder(); Console.WriteLine(america); }
static void Main(string[] args) { Land land = new Land(); President putin = new President(); putin.Naam = "Putin deez nuts"; List <Minister> test = new List <Minister>(); test.Add(new Minister()); test.Add(new Minister()); test.Add(new Minister()); test.Add(new Minister()); test.Add(new Minister()); test[0].Naam = "Ruddy"; test[1].Naam = "Lene"; land.MaakRegering(putin, test); putin.JaarVerder(); land.MaakRegering(putin, test); putin.JaarVerder(); land.MaakRegering(putin, test); putin.JaarVerder(); land.MaakRegering(putin, test); putin.JaarVerder(); test[0].Naam = "luddy"; test[1].Naam = "wenen"; land.MaakRegering(putin, test); land.MaakRegering(putin, test); }
static void Main(string[] args) { var tropico = new Land(); var elpresident = new President("El Presidente"); var ministerie = new List <Minister>(); ministerie.Add(new Minister("Penultimo")); ministerie.Add(new Minister("Antonio Lopez")); ministerie.Add(new Minister("Comrade Vasquez")); ministerie.Add(new Minister("Reverand Esteban")); ministerie.Add(new Minister("General Rodriguez")); tropico.MaakRegering(elpresident, ministerie); tropico.JaarVerder(); tropico.MaakRegering(elpresident, ministerie); tropico.JaarVerder(); tropico.JaarVerder(); tropico.JaarVerder(); }