public void GivenIAmOnTheGroundFloor()
 {
     _elevatorUser = new ElevatorUser()
     {
         CurrentFloor = 0
     };
 }
예제 #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);
        }
예제 #3
0
 public void GivenIAmOnTheXFloor(int userLevel)
 {
     user = new ElevatorUser {
         CurrentFloor = userLevel
     };
 }
예제 #4
0
 public UseElevatorV3Steps()
 {
     _elevatorBox  = Substitute.ForPartsOf <ElevatorBox>();
     _elevatorUser = new ElevatorUser();
 }