public void TestGetAll() { try { ThirdPartyMarketingRepository target = new ThirdPartyMarketingRepository(); target.SessionFactory = this.CreateSessionFactory(); var actual = target.GetAll(); Assert.AreEqual(true, (actual.Count>0)); } catch (Exception) { throw; } }
public void TestGetById() { try { ThirdPartyMarketingRepository target = new ThirdPartyMarketingRepository(); target.SessionFactory = this.CreateSessionFactory(); string dealercode = "SU00153500"; string marketcode = "91088"; var actual = target.GetById(dealercode, marketcode); Assert.AreEqual(1, actual.Count); //Assert.Equals(Expected,result) } catch (Exception) { throw; } }