private static void ChangeTest(MyPoco poco1, Repository <MyPoco> rep, UnitOfWork uow) { poco1.Content = "Test - was changed"; rep.Change(poco1); uow.Commit(); DumpTest(rep); }
private static void addTest(Repository <MyPoco> rep, UnitOfWork uow) { var mypoco = new MyPoco() { Content = "Test" + System.DateTime.Now.ToString(CultureInfo.InvariantCulture), }; rep.Add(mypoco); uow.Commit(); DumpTest(rep); }