public IEnumerable <Cartao> GetAll(int idAluno) { return(_context.Cartao .Where(CartaoQueries.GetAll(idAluno))); }
public void QueryCartaoByAluno() { var result = _items.AsQueryable().Where(CartaoQueries.GetAll(1)); Assert.IsTrue(result.Count() == 2); }