我正在尝试模拟我正在使用的第三方接口(EventStore ClientAPI/IEventStoreConnection),特别是这个方法: Task<StreamEventsSlice> ReadStreamEventsForwardAsync,我使用Moq模拟事件存储连接,设置ReadStreamEventsForwardAsyncMethod,并尝试像这样设置返回类型: var connection = new Mock<IEventStoreConnection,也不
OR }我试着用上面两种方法来模拟,但是没有用,
NSubstitute.Exceptions.CouldNotSetReturnDueToTypeMismatchException :不能为IPerson.get_SalaryCalculator返回ISalaryCalculatorProxy类型的值(预期类型为Salary