public async Task <IEnumerable <PaisModel> > Handle(ObtenerPaisesRequest request, CancellationToken cancellationToken) { logger.LogInformation("Obteniendo paises"); var dataModel = await service.ObtenerPaisesAsync(); return(mapper.Map <IEnumerable <PaisModel> >(dataModel)); }
public void ObtenerPaisesAsyncTest() { var result = service.ObtenerPaisesAsync().Result; Assert.IsTrue(result.Any()); }