public void ConsultarStatusDrone()
        {
            ICoordinateService     coordinateService     = new CoordinateService();
            IPedidoDroneRepository pedidoDroneRepository = null;
            IDroneRepository       droneRepository       = new MockDroneRepository();

            IPedidoRepository pedidoRepository = null;

            IDroneService droneService = new DroneService(coordinateService, pedidoDroneRepository, droneRepository, pedidoRepository);

            droneService.GetDroneStatusAsync();

            Assert.Equal <int>(2, droneService.GetDroneStatusAsync().Count);
        }
        public void RetornarStatusDrone()
        {
            StatusDroneDto sddUm = new StatusDroneDto {
                ClienteId = 1, PedidoId = 1
            };
            StatusDroneDto sddDois = new StatusDroneDto {
                ClienteId = 2, PedidoId = 2
            };

            List <StatusDroneDto> listSdd = new List <StatusDroneDto> {
                sddUm, sddDois
            };

            var _droneRepository = new Mock <IDroneRepository>();

            _droneRepository.Setup(_ => _.GetDroneStatusAsync()).Returns(listSdd);

            ICoordinateService     _coordinateService     = null;
            IPedidoDroneRepository _pedidoDroneRepository = null;
            IPedidoRepository      _pedidoRepository      = null;

            var droneService = new DroneService(_coordinateService, _pedidoDroneRepository, _droneRepository.Object, _pedidoRepository);

            var result = droneService.GetDroneStatusAsync();

            Assert.True(result.Count() == 2, "A quantidade de registros retornados não esperada");
        }