public void exists() { var criteria = _customerRepo.Session.CreateCriteria <Customer>(); criteria.Add(Restrictions.Eq("State", "CA")); criteria.Add(Restrictions.Eq("Country", "USA")); var exists = _customerRepo.Exists(criteria); Assert.IsTrue(exists); }