예제 #1
0
        public void LeftSideBarrierCarGetBack()
        {
            if (LeftSideBarrier.Car == null)
            {
                Notification.AllPlacesIsBusy();
            }

            Move(LeftSideBarrier, FreeCars.Last());
        }
예제 #2
0
        public void RightSideBarrierCarGetToFreeCars()
        {
            if (RightSideBarrier.Car == null || LeftSideBarrier.Car != null)
            {
                Notification.RoadIsBusy();
            }

            Barrier.Open();

            Move(RightSideBarrier, FreeCars.Last());

            CarCountUpdater();
        }