Exemplo n.º 1
0
        public static void InitilizeUnicorns()
        {
            unicorns = new UnicornCollection();

            Unicorn unicorn1 = new Unicorn("Darren Hoehna", new DateTime(1990, 02, 10), 200);

            unicorns.AddUnicorn(unicorn1);

            Unicorn unicorn2 = new Unicorn("Tierney Grim", new DateTime(1990, 05, 10), 190);

            unicorns.AddUnicorn(unicorn2);
        }
Exemplo n.º 2
0
 public Farm(UnicornCollection unicorns, LocationCollection locations, Dictionary <Unicorn, Location> placesWhereTheUnicornsAre)
 {
     this.unicorns  = unicorns;
     this.locations = locations;
     this.placesWhereTheUnicornsAre = placesWhereTheUnicornsAre;
 }