You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
let (id_factory_mock, id_factory_mock_handle) = scenario.create_mock_for::<dyn IdFactory>();
scenario.expect(id_factory_mock_handle.with_value(0).and_return(XXX));
...
For the XXX part I don't now what to return. I tried several things but I'm not sure if it is even possible at all right now. I thought of sth. like this:
I try to configure a mock factory which is implemented as fluent interface:
My code under test:
And my expectations:
For the XXX part I don't now what to return. I tried several things but I'm not sure if it is even possible at all right now. I thought of sth. like this:
scenario.expect(id_factory_mock_handle.with_value(0).then().build().and_return(Box::new(MyId)));
The text was updated successfully, but these errors were encountered: