public void GetLocationsCommandTest() { GetLocationsCommand GetLocationsCommand = CommandFactory.GetLocationsCommand(); GetLocationsCommand.Execute(); Assert.NotNull(GetLocationsCommand.GetResult()); }
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)); }