public void Crud()
        {
            MockEntity2 m2 = new MockEntity2();
            m2.Save();
           RestartBF();
           MockEntity m = new MockEntity();
           m.Save();
           RestartBF();
           Assert.IsNotNull(  MockEntity2DAO.Instance.Get(m2.Id));
           Assert.IsNotNull(  MockEntityDAO.Instance.Get(m.Id));

        }
        public void Crud()
        {
            MockEntity2 m2 = new MockEntity2();

            m2.Save();
            RestartBF();
            MockEntity m = new MockEntity();

            m.Save();
            RestartBF();
            Assert.IsNotNull(MockEntity2DAO.Instance.Get(m2.Id));
            Assert.IsNotNull(MockEntityDAO.Instance.Get(m.Id));
        }
Esempio n. 3
0
 public override bool Equals(object obj)
 {
     if (Id == 0)
     {
         return(Equals(this, obj));
     }
     else
     {
         MockEntity2 that = obj as MockEntity2;
         if (that == null)
         {
             return(false);
         }
         return(Id.Equals(that.Id));
     }
 }
 public void Delete(MockEntity2 me)
 {
     Sess.Delete(me);
 }
 public void Save(MockEntity2 me)
 {
     Sess.Save(me);
 }
 public void Delete(MockEntity2 me)
 {
     Sess.Delete(me);
 }
 public void Save(MockEntity2 me)
 {
     Sess.Save(me);
 }