public void TestInsert() { DbEntityA entity1 = _genericRepositoryTestA.Insert(new DbEntityA() { Id = 3, Value1 = "30" }); DbEntityA entity2 = _genericRepositoryTestA.Insert(new DbEntityA() { Id = 4, Value1 = "40" }); Assert.IsTrue(entity1 != null && entity2.Value1 != null); }
public void TestInsertWithDbTriggers() { TriggerManager.Instance.Initialize <DBTrigger>(new TriggerReader().ReadTriggerList()); DbEntityA entity1 = _genericRepositoryTestA.Insert(new DbEntityA() { Id = 3, Value1 = "30" }); DbEntityA entity2 = _genericRepositoryTestA.Insert(new DbEntityA() { Id = 4, Value1 = "40" }); DbEntityB entity3 = _genericRepositoryTestB.Insert(new DbEntityB() { Id = 4, Value1 = "60" }); Assert.IsTrue(entity1 != null && entity2.Value1 != null && entity3.Value1 != null); }