public async Task <IActionResult> Get(GetContatoListFilter model) { var resultFromQuery = await _queryList.Execute(model); if (resultFromQuery == null) { return(NotFound("Nenhum conteudo encontrado")); } return(Ok(resultFromQuery)); }
public GetContatoListFilterTests() { _filter = new GetContatoListFilter(); }
public GetContatoListQueryTests() { _contatoFromDB = new Contato(); _filter = new GetContatoListFilter(); _repository = new Mock <IContatoRepository>(); }