示例#1
0
        public async Task <IActionResult> Get(GetContatoListFilter model)
        {
            var resultFromQuery = await _queryList.Execute(model);

            if (resultFromQuery == null)
            {
                return(NotFound("Nenhum conteudo encontrado"));
            }

            return(Ok(resultFromQuery));
        }
示例#2
0
 public GetContatoListFilterTests()
 {
     _filter = new GetContatoListFilter();
 }
示例#3
0
 public GetContatoListQueryTests()
 {
     _contatoFromDB = new Contato();
     _filter        = new GetContatoListFilter();
     _repository    = new Mock <IContatoRepository>();
 }