示例#1
0
        public void CommitTest()
        {
            IUnitOfWork uow = new Repositories.UnitOfWork(dbContext.Object);

            uow.Student.Insert(new Common.Models.Student {
                EnrollmentDate = DateTime.Now, FirstMidName = "Suraj", LastName = "Bangale"
            });
            uow.Commit();
            dbContext.Verify(x => x.SaveChanges());
        }