Beispiel #1
0
        static void Main(string[] args)
        {
            var automat = new Automat(9);

            automat.GotApplication();
            automat.CheckApplication();
            automat.RentApartment();
        }
Beispiel #2
0
 public ApartmentRentedState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #3
0
 public FullyRentedState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #4
0
 public WaitingState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #5
0
 public GotApplicationState(Automat automat)
 {
     _automat = automat;
     _random  = new Random(System.DateTime.Now.Millisecond);
 }
Beispiel #6
0
 public WaitingState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #7
0
        static void Main(string[] args)
        {
            var automat = new Automat(9);

            automat.GotApplication();
            automat.CheckApplication();
            automat.RentApartment();
        }
Beispiel #8
0
 public FullyRentedState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #9
0
 public ApartmentRentedState(Automat automat)
 {
     _automat = automat;
 }
Beispiel #10
0
 public GotApplicationState(Automat automat)
 {
     _automat = automat;
     _random = new Random(System.DateTime.Now.Millisecond);
 }