由于EntityEntry没有公共构造函数,因此Mock类型必须是接口,抽象或非密封类。 EntityEntry ee = new EntityEntry(); //NOT _entityEntryMock = new Mock<EntityEntry>(); ...
確定! 回上一頁