예제 #1
0
        public void SkieOpslag_PakSkies()
        {
            SkieOpslag skieOpslag = new SkieOpslag();
            Skies      skies      = new Skies(1);

            skieOpslag.Afgeven(skies);
            Assert.AreSame(skies, skieOpslag.PakSkies());
        }
예제 #2
0
        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();
                }
            });
        }
예제 #3
0
        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();
                }
            });
        }