Ejemplo n.º 1
0
        public void QuerySucess()
        {
            var result = _owners.AsQueryable().Where(OwnerQueries.GetByName(
                                                         new Name(firstName: "Nome2", lastName: "Sobrenome2")
                                                         ));

            Assert.AreEqual(1, result.Count());
        }
Ejemplo n.º 2
0
        public void QueryFail()
        {
            var result = _owners.AsQueryable().Where(OwnerQueries.GetByName(
                                                         new Name(firstName: "", lastName: "")
                                                         ));

            Assert.AreEqual(0, result.Count());
        }