//The GListEngineTests() constructor creates the MockedGListAccessor and passes it as the IGListAccessor argument into the GListEngine constructor public GListEngineTests() { mockedGListAccessor = new MockedGListAccessor(); gListEngine = new GListEngine(mockedGListAccessor); }
// using dependency injection to use engines' methods public GListController(IGListEngine gListEngine, IItemsEngine itemsEngine) { _gListEngine = gListEngine; _itemsEngine = itemsEngine; }