示例#1
0
        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>());
        }