Ejemplo n.º 1
0
        public void SendPackage_SetsPackage_SendsOnDrone()
        {
            IOrder order = new Order("Darren", "00000000", 23, 56);
            IDrone drone = new Drone("");
            IPort  port  = new Port("Management Port", _gridMap, 0, 0);

            port.AddDrone(drone);
            drone.AddOrder(order);
            _port.GetPathForDrone(drone, order.TargetY, order.TargetX);

            bool deliveryValid = drone.IsDeliveryValid();

            drone.GoToClient();

            Assert.True(deliveryValid);
        }