Exemple #1
0
        public static ILocation GetLocation(int floorNumber)
        {
            switch (floorNumber)
            {
            case 0:
                return(GroundFloor.Get());

            default:
                return(EFloor.Get(floorNumber));
            }
        }
Exemple #2
0
        public void TestName()
        {
            //Arrange
            var lift = new Lift();

            EFloor[] eFloor = new EFloor[4];
            int      i      = 1;

            while (i <= eFloor.Length)
            {
                var newFloor = LocationSingletory.GetLocation(i) as EFloor;
                eFloor[i - 1] = newFloor;
                i++;
            }
            int expected = 0;

            //Act



            //Assert
        }