public IEnumerable <TodoItem> GetAllDone(string user) { return(_context.Todos .AsNoTracking() .Where(TodoQueries.GetAllDone(user)) .OrderBy(x => x.Date)); }
public void GetAllDone() { _items[0].MarkAsDone(); var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("*****@*****.**")); Assert.AreEqual(1, result.Count()); }
public void DeveRetornarTarefasApenasDoUsuarioInformadoQueEstejamConcluidas() { _items.FirstOrDefault().MarkAsDone(); var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("Usuario1")); Assert.AreEqual(1, result.Count()); }
public IEnumerable <TodoItem> GetAllDone(string email) { return(_context.Todos .AsNoTracking() .Where(TodoQueries.GetAllDone(email)) .OrderBy(t => t.Date)); }
public async Task <IEnumerable <TodoItem> > GetAllDoneAsync(string user) { return(await _context.Todos .AsNoTracking() .Where(TodoQueries.GetAllDone(user)) .OrderBy(x => x.Date) .ToListAsync()); }
public IEnumerable <TodoItem> GetAllDone(string user) { var result = _context.Tarefas .AsNoTracking() .Where(TodoQueries.GetAllDone(user)) .OrderBy(x => x.Date); return(result); }
public IEnumerable <TodoItem> GetAllDone(string refUser) { return(_items.AsQueryable().Where(TodoQueries.GetAllDone(refUser)).OrderBy(x => x.Date)); }
public void When_execute_query_should_return_only_user_done_tasks() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("UserTest3")); Assert.AreEqual(0, result.Count()); }
public void Dada_consulta_retornar_tarefas_feitas_do_usuario() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("mightyfool")); Assert.AreEqual(0, result.Count()); }
public void Should_return_only_todo_done_of_willian() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("willian")); Assert.AreEqual(0, result.Count()); }
public void Dada_consulta_deve_retornar_tarefas_concluidas() { var result = _itens.AsQueryable().Where(TodoQueries.GetAllDone("Carlos Soares")); Assert.AreEqual(0, result.Count()); }
public void Todas_tarefas_concluidas_do_usuario() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("arthur.reis")); Assert.AreEqual(1, result.Count()); }
public IList <TodoItem> GetAllDone(string user) { return(_dbSet.AsNoTracking() .Where(TodoQueries.GetAllDone(user)).OrderBy(x => x.Date).ToList()); }
public void Dada_a_consulta_deve_retonar_apenas_tarefas_completas_do_usuario_felipemachado() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("felipemachado")); Assert.True(result.Count() == 1); }
public void Dada_a_consulta_deve_retornar_tarefas_marcadas_como_concluidas_do_usuario_Tales_Boalim() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("Tales Boalim")); Assert.AreEqual(2, result.Count()); }
public void Deve_retornar_tarefas_prontas_apenas_do_usuario_patriciamatta() { var result = _items.AsQueryable().Where(TodoQueries.GetAllDone("patriciamatta")); Assert.AreEqual(0, result.Count()); }