コード例 #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>();
 }