我有一個類具有依賴性:如何在Rhino Mocks中存儲Func <T,TResult>?
private readonly IWcfClient<ITestConnectionService> _connectionClient;
,我想stub這個電話:
_connectionClient.RemoteCall(client => client.Execute("test"));
目前這是行不通的:
_connectionService
.Stub(c => c.RemoteCall(rc => rc.Execute("test")))
.Return(true);
這是可能的在犀牛?