Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }