public void Data_a_consulta_deve_retornar_tarefas_apenas_do_usuario_jhonatanmedeiros() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("jhonatanmedeiros")); Assert.AreEqual(2, result.Count()); }
public void Dada_a_consulta_deve_retornar_tarefas_apenas_do_usuario_lucasvalenzuel() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("lucasvalenzuela")).ToList(); Assert.AreEqual(2, result.Count()); }
public IEnumerable <TodoItem> GetAll(string user) { return(_context.Todos.AsNoTracking().Where(TodoQueries.GetAll(user)).OrderBy(x => x.Date)); }
public void Dada_a_consulta_deve_retornar_apenas_dados_do_usuario_felipemachado() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("felipemachado")); Assert.True(result.Count() == 3); }
public void Dada_a_consulta_deve_retornar_tarefas_apenas_do_usuario() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("Paulo Henrique")); Assert.AreEqual(2, result.Count()); }
public void Data_a_consulta_retorne_consulta_vanessa() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("vanessa")); Assert.AreEqual(2, result.Count()); }
public void Dada_a_consulta_deve_retornar_tarefas_apenas_do_usuario_Tales_Boalim() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("Tales Boalim")); Assert.AreEqual(3, result.Count()); }
public void GetAll_consulta_user() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("usuarioB")); Assert.AreEqual(1, result.Count()); }
public void Deve_retornar_tarefas_apenas_do_usuario_usertest() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("usertest")); Assert.AreEqual(2, result.Count()); }
public void Dada_consulta_deve_retornar_apenas_tarefas_do_Batman() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("Batman")); Assert.AreEqual(1, result.Count()); }
public void Deve_retornar_tarefas_apenas_do_douglas() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("douglas")); Assert.AreEqual(result.Count(), 2); }
public void Deve_retornar_apenas_tarefas_do_usuario_leonardooliveira() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("leonardooliveira")); Assert.AreEqual(2, result.Count()); }
public void ReturnTodoItensByUser() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("usuario 1")); Assert.AreEqual(2, result.Count()); }
public void Deve_retornar_tarefas_apenas_do_usuario_patriciamatta() { var result = _items.AsQueryable().Where(TodoQueries.GetAll("patriciamatta")); Assert.AreEqual(3, result.Count()); }