//не ок реализация, поправить, когда будет инъекция 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"); }
public PotionParser(IItemPool itemPool, IPotionValidator potionValidator) { _itemPool = itemPool; _potionValidator = potionValidator; }