public void TestGetStatusDrone()
        {
            _droneFacade.GetDroneStatusAsync().Returns(SetupTests.GetDroneStatus());
            var droneController = new DronesController(_droneFacade);

            droneController.GetStatusDrone();
            _droneFacade.Received().GetDroneStatusAsync();
        }
Example #2
0
 public ActionResult <List <StatusDroneDto> > GetStatusDrone()
 {
     return(Ok(_droneFacade.GetDroneStatusAsync()));
 }
Example #3
0
 public async Task <ActionResult <List <StatusDroneDto> > > GetStatusDrone()
 {
     return(Ok(await _droneFacade.GetDroneStatusAsync()));
 }