Пример #1
0
        public void Init()
        {
            laundryRoom = new LaundryRoom();
            laundryRoom.Machines.Add(new Machine());
            laundryRoom.Machines.Add(new Machine());
            laundryRoom.Machines.Add(new Machine());
            laundryUser      = new LaundryUser();
            laundryUser.name = "Namjoo";

            reservation = new Reservation();

            washTime          = new WashTime();
            washTime.fromTime = DateTime.Now.AddMinutes(10).TimeOfDay;

            reservation.WashTime1 = washTime;
            laundryUser.Reservations.Add(reservation);
        }
Пример #2
0
        public void Init()
        {
            laundryRoom = new LaundryRoom();
            laundryRoom.Machines.Add(new Machine());
            laundryRoom.Machines.Add(new Machine());
            laundryRoom.Machines.Add(new Machine());
            laundryUser = new LaundryUser();
            laundryUser.name = "Namjoo";

            reservation = new Reservation();

            washTime = new WashTime();
            washTime.fromTime = DateTime.Now.AddMinutes(10).TimeOfDay;

            reservation.WashTime1 = washTime;
            laundryUser.Reservations.Add(reservation);
        }