Esempio n. 1
0
        public void UsingStateMethods()
        {
            RentalMethods rentalMethods = new RentalMethods(9);

            rentalMethods.SubmitApplication();
            rentalMethods.CheckApplication();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var rentalMethods = new RentalMethods(9);

            rentalMethods.GetApplication();

            rentalMethods.CheckApplication();
            rentalMethods.RentApartment();
            rentalMethods.DispenseKeys();
        }