public IEnumerable <TodoItem> GelAllUser(string user) { return(_context.Todos .AsQueryable() .AsNoTracking() .Where(TodoQueries.GelAllUser(user)) .OrderBy(x => x.Date)); }
public void Dada_a_conslta_deve_retornar_tarefas_apenas_do_diego_rodrigo() { var result = _items.AsQueryable().Where(TodoQueries.GelAllUser("Diego Rodrigo")); Assert.AreEqual(2, result.Count()); }