public void GetCountriesCommandCommandTest()
        {
            GetCountriesCommand GetCountriesCommand = CommandFactory.GetCountriesCommand();

            GetCountriesCommand.Execute();
            Assert.NotNull(GetCountriesCommand.GetResult());
        }
Beispiel #2
0
        public ActionResult <IEnumerable <LocationDTO> > GetCountries()
        {
            LocationMapper      locationMapper      = MapperFactory.createLocationMapper();
            GetCountriesCommand commandGetCountries = CommandFactory.GetCountriesCommand();

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

            _logger?.LogInformation($"Obtenido los paises exitosamente");
            return(locationMapper.CreateDTOList(result));
        }