Hi,
I'm having an issue with Objection when attempting to run some xcode unit tests (XCTest).
I want to test a method on my AppDelegate class, this method grabs the default injector, resolves a class FIDNetworkManager, does some logic and sets some properties on that FIDNetworkManager object.
During the didFinishLaunchingWithOptions of my AppDelegate I am creating and setting the default injector with bindings defined in my MWCModule class.
So in my unit test, in the setUp method, I'm creating and setting the default injector, I override the application:didFinishLaunchingWithOptions: on my AppDelegate, create an instance of my AppDelegate, call the method I want to test and try to resolve the FIDNetworkManager to verify that the properties were setting accordingly.
The issue is that it appears that default injector is different for the test and the application. When I try to resolve the default injector from the app delegate that was set up in my unit test, it's nil. It's like the injector was not set up in my application.
Can you please give me some advise as to what I'm doing incorrectly?
Thanks.