示例#1
0
 //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);
 }
示例#2
0
 // using dependency injection to use engines' methods
 public GListController(IGListEngine gListEngine, IItemsEngine itemsEngine)
 {
     _gListEngine = gListEngine;
     _itemsEngine = itemsEngine;
 }