Exemple #1
0
 // Everything inheriting from IReplaceableModule is added to the IOC and can be dependency injected.
 public RandomDemo(IAbathur abathur, TerranDemo terranModule, ProtossDemo protossModule, ZergDemo zergModule)
 {
     _terranModule  = terranModule;
     _protossModule = protossModule;
     _zergModule    = zergModule;
     _abathur       = abathur;
 }
Exemple #2
0
 // Everything inheriting from IReplaceableModule is added to the IOC and can be dependency injected.
 public RandomDemo(IAbathur abathur, IIntelManager intel, TerranDemo terranModule, ProtossDemo protossModule, ZergDemo zergModule)
 {
     _terranModule  = terranModule;
     _protossModule = protossModule;
     _zergModule    = zergModule;
     _abathur       = abathur;
     _intel         = intel;
 }