I am using Moq - but could easily swap to another mock framework if needed.
I have a interface defined:
public interface IBaseEngineManagerImp
{
void SetClientCallbackSender(IClientCallbackSender clientCallbackSender);
}
I then mock IBaseEngineManagerImp with
mockEngineManagerImp = new Mock<IEngineManagerImp>();
EngineManager engineManager = new EngineManager(mockEngineManagerImp.Object);
engineManager then calls SetClientCallbackSender passing in a value.
How do I get the value that was passed to SetClientCallbackSender from my unit test?
(I wish to call some methods on clientCallbackSender as part of the test)