예제 #1
0
        //Business Logic
        static void Main()
        {
            Garage smallGarage = new Garage(2);
            Car    car1        = new Car("red");
            Car    car2        = new Car("blue");

            People driver1 = new People("Jane");
            People driver2 = new People("Bill");

            car1.SeatPeeps(driver1, 0);
            car2.SeatPeeps(driver2, 0);

            smallGarage.ParkCar(car1, 0);
            smallGarage.ParkCar(car2, 1);
            Report rando = new Report(new Garage[] { smallGarage });

            Console.WriteLine(smallGarage.Cars);
            Console.WriteLine(rando.Customers);

            //Console.WriteLine("hello");
        }