J'ai une classe avec une dépendance:Comment remplacer un Func <T,TResult> dans Rhino Mocks?
private readonly IWcfClient<ITestConnectionService> _connectionClient;
et je veux bouchonner cet appel:
_connectionClient.RemoteCall(client => client.Execute("test"));
Ce ne fonctionne pas actuellement:
_connectionService
.Stub(c => c.RemoteCall(rc => rc.Execute("test")))
.Return(true);
Est-ce possible dans Rhino?