public void SkieOpslag_PakSkies() { SkieOpslag skieOpslag = new SkieOpslag(); Skies skies = new Skies(1); skieOpslag.Afgeven(skies); Assert.AreSame(skies, skieOpslag.PakSkies()); }
static void SportersPakkenUitrusting(object sender, SportersEventArgs args) { var cursisten = args.Sporters; cursisten.ForEach(c => { if (c is Skier) { c.Uitrusting = skiStapel.PakSkies(); } else { c.Uitrusting = wakeboardStapel.PakWakeboard(); } }); }
static void SportersPakkenUitrusting(object sender, SportersEventArgs args) { Console.WriteLine("SportersPakkenUitrusting"); var cursisten = args.Sporters; cursisten.ForEach(c => { if (c is Skier) { c.Uitrusting = skiStapel.PakSkies(); // throw new NotImplementedException("cursist moet skies pakken van stapel. Maar dit is nog niet geïmplementeerd"); } else { c.Uitrusting = wakeboardStapel.PakWakeboard(); } }); }