public IEnumerable <ItemLeilao> GetAllByUser(string user) { return(_context.Leiloes.AsNoTracking().Where(LeilaoQueries.GetAllByUser(user)).OrderBy(x => x.nome_leilao)); }
public void Dada_a_consulta_deve_retornar_leiloes_apenas_do_usuario_fernandapires01() { var result = _items.AsQueryable().Where(LeilaoQueries.GetAllByUser("fernandapires01")); Assert.AreEqual(3, result.Count()); }