public void UserRepositoryEFTest_Create() { var mockDbContext = DbContextMock <DbContext> .GetMock(); var mockUnitOfWork = UnitOfWorkMock.GetMockAndSetUpContext(mockDbContext); var userRepositoryEF = new UserRepositoryEF(mockUnitOfWork.Object); mockDbContext.Verify(x => x.Set <User>()); }