public void GetLocationsCommandTest()
        {
            GetLocationsCommand GetLocationsCommand = CommandFactory.GetLocationsCommand();

            GetLocationsCommand.Execute();
            Assert.NotNull(GetLocationsCommand.GetResult());
        }
Esempio n. 2
0
        public ActionResult <IEnumerable <LocationDTO> > Get()
        {
            LocationMapper      locationMapper      = MapperFactory.createLocationMapper();
            GetLocationsCommand commandGetLocations = CommandFactory.GetLocationsCommand();

            commandGetLocations.Execute();
            var result = commandGetLocations.GetResult();

            _logger?.LogInformation($"Obtenida las Location  por pais exitosamente");
            return(locationMapper.CreateDTOList(result));
        }