I inject a stub generated with FakeItEasy to my class. At some point my class subscribes to dependency's event. I want to invoke this event afterwards as part of my test method but it does not seem to work:
var restApiManager = A.Fake<IRestApiManager>(); //IRestApiManager has Connected event
var target = new ViewModel(restApiManager);
target.Connect(); //some private method subscribes to RestApiManager.Connected
restApiManager.Connected(); //obviously not working
Is there a way to invoke an event from a stub?