public string BuyItem(string[] args) { IItem item = this.itemFactory.CreateItem(args); IHero currentHero = this.heroes.FirstOrDefault(h => h.Name == args[1]); return currentHero.EquipItem(item); }
public string BuyItem(string[] args) { IItem item = this.itemFactory.CreateItem(args); IHero currentHero = this.heroes.FirstOrDefault(h => h.Name == args[1]); return currentHero.EquipItem(item); }