public ItemTypeParserTest() { itemRarityParser = Substitute.For<IItemRarityParser>(); wandDefinitions = new[] { new ItemDefinition { ItemType = ItemType.Wand, ItemSubTypes = new[] { new ItemSubType {Name = "Driftwood Wand"}, new ItemSubType {Name = "Goat's Horn"}, new ItemSubType {Name = "Carved Wand"}, new ItemSubType {Name = "Quartz Wand"}, new ItemSubType {Name = "Spiraled Wand"}, new ItemSubType {Name = "Sage Wand"}, new ItemSubType {Name = "Faun's Horn"}, new ItemSubType {Name = "Engraved Wand"}, new ItemSubType {Name = "Crystal Wand"}, new ItemSubType {Name = "Serpent Wand"}, new ItemSubType {Name = "Omen Wand"}, new ItemSubType {Name = "Demon's Horn"}, new ItemSubType {Name = "Imbued Wand"}, new ItemSubType {Name = "Opal Wand"}, new ItemSubType {Name = "Tornado Wand"}, new ItemSubType {Name = "Prophecy Wand"} } } }; }
public ItemParser() { itemRarityParser = new ItemRarityParser(); itemTypeParser = new ItemTypeParser(new ItemDefinition[0], itemRarityParser); parsers = new IParser<Item, object>[] { }; }
public ItemTypeParser(IEnumerable<ItemDefinition> itemDefinitions, IItemRarityParser itemRarityParser) { this.itemDefinitions = itemDefinitions; this.itemRarityParser = itemRarityParser; }