Esempio n. 1
0
 //не ок реализация, поправить, когда будет инъекция
 public ChainsGeneratorApplication()
 {
     _itemPool        = new ItemPool();
     _potionValidator = new PotionValidator();
     _potionParser    = new PotionParser(_itemPool, _potionValidator);
     _chainsGenerator = new ChainsGenerator(_itemPool);
     _potionPrinter   = new BBCodeChainPrinter("result.txt");
 }
 public RecipesByLevelApplication()
 {
     //впилить ninject и вообще по уму сделать
     _itemPool        = new ItemPool();
     _potionValidator = new PotionValidator();
     _potionParser    = new PotionParser(_itemPool, _potionValidator);
     _potionPrinter   = new BBCodePotionPrinter("result.txt");
 }
Esempio n. 3
0
 public ChainsGenerator(IItemPool itemPool)
 {
     _itemPool = itemPool;
 }
Esempio n. 4
0
 public PotionParser(IItemPool itemPool, IPotionValidator potionValidator)
 {
     _itemPool        = itemPool;
     _potionValidator = potionValidator;
 }