예제 #1
0
        public void Sample()
        {
            var automat = new Automat(9);

            automat.GotApplication();
            automat.CheckApplication();
            automat.RentApartment();
        }
예제 #2
0
 public FullyRentedState(Automat automat)
 {
     _automat = automat;
 }
예제 #3
0
 public GotApplicationState(Automat automat)
 {
     _automat = automat;
     _random  = new Random(System.DateTime.Now.Millisecond);
 }
예제 #4
0
 public ApartmentRentedState(Automat automat)
 {
     _automat = automat;
 }
예제 #5
0
 public WaitingState(Automat automat)
 {
     _automat = automat;
 }