Esempio n. 1
0
        public void CanGetByExample()
        {
            IDaoFactory  daoFactory      = new NHibernateDaoFactory();
            ICustomerDao customerDao     = daoFactory.GetCustomerDao();
            Customer     exampleCustomer = new Customer(TestGlobals.TestCustomer.CompanyName);
            Customer     foundCustomer   = customerDao.GetUniqueByExample(exampleCustomer);

            Assert.AreEqual(TestGlobals.TestCustomer.CompanyName, foundCustomer.CompanyName);
        }