Exemple #1
0
        public void TestGetStatusDrone()
        {
            _droneFacade.GetDroneStatus().Returns(SetupTests.GetDroneStatus());
            var droneController = new DronesController(_droneFacade);

            droneController.GetStatusDrone();
            _droneFacade.Received().GetDroneStatus();
        }
Exemple #2
0
 public ActionResult <List <StatusDroneDto> > GetStatusDrone()
 {
     return(Ok(_droneFacade.GetDroneStatus()));
 }