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()); }
public void UnitOfWorkNullContext() { IUnitOfWork uow = new Repositories.UnitOfWork(null); }
public void UnitOfWorkTest_Enrollment() { IUnitOfWork uow = new Repositories.UnitOfWork(dbContext.Object); Assert.IsNotNull(uow.Enrollment); }
public void UnitOfWorkTest_Instructor() { IUnitOfWork uow = new Repositories.UnitOfWork(dbContext.Object); Assert.IsNotNull(uow.Instructor); }
public void UnitOfWorkTest_Course() { IUnitOfWork uow = new Repositories.UnitOfWork(dbContext.Object); Assert.IsNotNull(uow.Course); }