public void GivenIAmOnTheGroundFloor()
 {
     _elevatorUser = new ElevatorUser()
     {
         CurrentFloor = 0
     };
 }
Esempio n. 2
0
        public void GivenUserWantsToTakeElevatorFromFloorToFloor(string userName, int currentFloor, int goingTo)
        {
            var user = new ElevatorUser
            {
                Name         = userName,
                CurrentFloor = currentFloor,
                GoingTo      = goingTo
            };

            user.CallElevator(elevator);
            user.RequestFloor(elevator);
        }
Esempio n. 3
0
 public void GivenIAmOnTheXFloor(int userLevel)
 {
     user = new ElevatorUser {
         CurrentFloor = userLevel
     };
 }
Esempio n. 4
0
 public UseElevatorV3Steps()
 {
     _elevatorBox  = Substitute.ForPartsOf <ElevatorBox>();
     _elevatorUser = new ElevatorUser();
 }