示例#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);

        }