Make MemoryUnitOfWork methos virtual.