public void TestListarPorCampo() { try { List <Livro> l = domain.ObterPor("Preco", "100"); Assert.IsTrue(l.Count > 0); } catch (Exception e) { Assert.Fail(e.Message); } }
public List <Livro> ObterPor(string campo, string ordenacao) { return(domain.ObterPor(campo, ordenacao)); }