Пример #1
0
 public void TestGetLeadHeaderAll()
 {
     LeadHeaderRepository target = new LeadHeaderRepository();
     target.SessionFactory = this.CreateSessionFactory();
     var actual = target.GetAll();
     Assert.AreEqual(true, (actual.Count > 0));
 }
Пример #2
0
        public void TestGetLeadHeaderById()
        {
            LeadHeaderRepository target = new LeadHeaderRepository();
            target.SessionFactory = this.CreateSessionFactory();
            string leadno = "0800001";

            var actual = target.GetById(leadno);
            Assert.AreEqual(1, actual.Count);
        }
Пример #3
0
        public void TestJoinWithMapping()
        {
            LeadHeaderRepository target = new LeadHeaderRepository();
            target.SessionFactory = this.CreateSessionFactory();

            var result = target.JoinWithOutMap();

            Assert.AreEqual(true, result.Count > 0);

        }