public void Setup() { mockTypeAndAmountPercentileSelector = new Mock <ITypeAndAmountPercentileSelector>(); alchemicalItemGenerator = new AlchemicalItemGenerator(mockTypeAndAmountPercentileSelector.Object); selection = new TypeAndAmountSelection(); itemVerifier = new ItemVerifier(); }
public void Setup() { mockTypeAndAmountPercentileSelector = new Mock <ITypeAndAmountPercentileSelector>(); generator = new AlchemicalItemGenerator(mockTypeAndAmountPercentileSelector.Object); result = new TypeAndAmountPercentileResult(); itemVerifier = new ItemVerifier(); }
public MundaneItemGeneratorRuntimeFactory(MundaneItemGenerator armorGenerator, MundaneItemGenerator weaponGenerator, MundaneItemGenerator toolGenerator, MundaneItemGenerator alchemicalItemGenerator) { this.armorGenerator = armorGenerator; this.weaponGenerator = weaponGenerator; this.toolGenerator = toolGenerator; this.alchemicalItemGenerator = alchemicalItemGenerator; }
public void Setup() { mockMaterialGenerator = new Mock <ISpecialMaterialGenerator>(); mockInnerGenerator = new Mock <MundaneItemGenerator>(); item = new Item(); decorator = new MundaneItemGeneratorSpecialMaterialDecorator(mockInnerGenerator.Object, mockMaterialGenerator.Object); mockInnerGenerator.Setup(g => g.Generate()).Returns(item); }
public ArmorGenerator(ICollectionsSelector collectionsSelector, IPercentileSelector percentileSelector, MundaneItemGenerator mundaneArmorGenerator, MagicalItemGenerator magicalArmorGenerator, Generator generator) { this.collectionsSelector = collectionsSelector; this.percentileSelector = percentileSelector; this.mundaneArmorGenerator = mundaneArmorGenerator; this.magicalArmorGenerator = magicalArmorGenerator; this.generator = generator; }
public void Setup() { mockPercentileSelector = new Mock <IPercentileSelector>(); mockAttributesSelector = new Mock <ICollectionsSelector>(); mockBooleanPercentileSelector = new Mock <IBooleanPercentileSelector>(); mundaneArmorGenerator = new MundaneArmorGenerator(mockPercentileSelector.Object, mockAttributesSelector.Object, mockBooleanPercentileSelector.Object); itemVerifier = new ItemVerifier(); mockPercentileSelector.Setup(p => p.SelectFrom(TableNameConstants.Percentiles.Set.MundaneArmors)).Returns("armor type"); }
public void Setup() { mockMaterialGenerator = new Mock <ISpecialMaterialGenerator>(); mockInnerGenerator = new Mock <MundaneItemGenerator>(); mockCollectionsSelector = new Mock <ICollectionSelector>(); decorator = new MundaneItemGeneratorSpecialMaterialDecorator(mockInnerGenerator.Object, mockMaterialGenerator.Object, mockCollectionsSelector.Object); item = new Item(); masterworkMaterials = new List <string>(); mockInnerGenerator.Setup(g => g.GenerateRandom()).Returns(item); mockCollectionsSelector.Setup(s => s.SelectFrom(TableNameConstants.Collections.Set.SpecialMaterials, TraitConstants.Masterwork)).Returns(masterworkMaterials); }
public void Setup() { mockPercentileSelector = new Mock <IPercentileSelector>(); mockAmmunitionGenerator = new Mock <IAmmunitionGenerator>(); mockCollectionsSelector = new Mock <ICollectionsSelector>(); mockBooleanPercentileSelector = new Mock <IBooleanPercentileSelector>(); mockDice = new Mock <Dice>(); mundaneWeaponGenerator = new MundaneWeaponGenerator(mockPercentileSelector.Object, mockAmmunitionGenerator.Object, mockCollectionsSelector.Object, mockBooleanPercentileSelector.Object, mockDice.Object); itemVerifier = new ItemVerifier(); mockPercentileSelector.Setup(p => p.SelectFrom(TableNameConstants.Percentiles.Set.MundaneWeapons)).Returns("weapon type"); expectedTableName = string.Format(TableNameConstants.Percentiles.Formattable.WEAPONTYPEWeapons, "weapon type"); mockPercentileSelector.Setup(p => p.SelectFrom(expectedTableName)).Returns("weapon name"); }
public void Setup() { mockPercentileSelector = new Mock <ITreasurePercentileSelector>(); mockCollectionsSelector = new Mock <ICollectionSelector>(); mockArmorDataSelector = new Mock <IArmorDataSelector>(); mundaneArmorGenerator = new MundaneArmorGenerator(mockPercentileSelector.Object, mockCollectionsSelector.Object, mockArmorDataSelector.Object); itemVerifier = new ItemVerifier(); armorSelection = new ArmorSelection(); mockPercentileSelector.Setup(s => s.SelectFrom(TableNameConstants.Percentiles.Set.MundaneArmors)).Returns("armor type"); mockArmorDataSelector.Setup(s => s.Select("armor type")).Returns(armorSelection); mockPercentileSelector.Setup(p => p.SelectFrom(TableNameConstants.Percentiles.Set.MundaneGearSizes)).Returns("size"); }
public void Setup() { itemVerifier = new ItemVerifier(); toolGenerator = GetNewInstanceOf <MundaneItemGenerator>(ItemTypeConstants.Tool); }
public MundaneItemGeneratorSpecialMaterialDecorator(MundaneItemGenerator innerGenerator, ISpecialMaterialGenerator specialMaterialGenerator, ICollectionSelector collectionsSelector) { this.innerGenerator = innerGenerator; this.specialMaterialGenerator = specialMaterialGenerator; this.collectionsSelector = collectionsSelector; }
public void Setup() { itemVerifier = new ItemVerifier(); alchemicalItemGenerator = GetNewInstanceOf <MundaneItemGenerator>(ItemTypeConstants.AlchemicalItem); }
public void Setup() { itemVerifier = new ItemVerifier(); weaponGenerator = GetNewInstanceOf <MundaneItemGenerator>(ItemTypeConstants.Weapon); }
public void Setup() { mockPercentileSelector = new Mock <ITreasurePercentileSelector>(); toolGenerator = new ToolGenerator(mockPercentileSelector.Object); itemVerifier = new ItemVerifier(); }
public MundaneItemGeneratorSpecialMaterialDecorator(MundaneItemGenerator innerGenerator, ISpecialMaterialGenerator specialMaterialGenerator) { this.innerGenerator = innerGenerator; this.specialMaterialGenerator = specialMaterialGenerator; }
public void Setup() { mockInnerGenerator = new Mock <MundaneItemGenerator>(); mockEventQueue = new Mock <GenEventQueue>(); decorator = new MundaneItemGeneratorEventGenDecorator(mockInnerGenerator.Object, mockEventQueue.Object); }
public MundaneItemGeneratorEventGenDecorator(MundaneItemGenerator innerGenerator, GenEventQueue eventQueue) { this.eventQueue = eventQueue; this.innerGenerator = innerGenerator; }
public void Setup() { itemVerifier = new ItemVerifier(); armorGenerator = GetNewInstanceOf <MundaneItemGenerator>(ItemTypeConstants.Armor); }