public void TestGetLeadHeaderAll() { LeadHeaderRepository target = new LeadHeaderRepository(); target.SessionFactory = this.CreateSessionFactory(); var actual = target.GetAll(); Assert.AreEqual(true, (actual.Count > 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); }
public void TestJoinWithMapping() { LeadHeaderRepository target = new LeadHeaderRepository(); target.SessionFactory = this.CreateSessionFactory(); var result = target.JoinWithOutMap(); Assert.AreEqual(true, result.Count > 0); }