public StaffGenerator(IPercentileSelector percentileSelector, IChargesGenerator chargesGenerator, ICollectionsSelector attributesSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator) { this.percentileSelector = percentileSelector; this.chargesGenerator = chargesGenerator; this.attributesSelector = attributesSelector; this.specialAbilitiesGenerator = specialAbilitiesGenerator; }
public MagicalArmorGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IPercentileSelector percentileSelector, ICollectionsSelector collectionsSelector, ISpecialAbilitiesGenerator specialAbilitiesSelector, ISpecificGearGenerator specificGearGenerator) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.percentileSelector = percentileSelector; this.collectionsSelector = collectionsSelector; this.specialAbilitiesSelector = specialAbilitiesSelector; this.specificGearGenerator = specificGearGenerator; }
public RodGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, ICollectionsSelector attributesSelector, IChargesGenerator chargesGenerator, IBooleanPercentileSelector booleanPercentileSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.attributesSelector = attributesSelector; this.chargesGenerator = chargesGenerator; this.booleanPercentileSelector = booleanPercentileSelector; this.specialAbilitiesGenerator = specialAbilitiesGenerator; }
public MagicalWeaponGenerator(ICollectionsSelector collectionsSelector, IPercentileSelector percentileSelector, IAmmunitionGenerator ammunitionGenerator, ISpecialAbilitiesGenerator specialAbilitiesGenerator, ISpecificGearGenerator specificGearGenerator, IBooleanPercentileSelector booleanPercentileSelector, ISpellGenerator spellGenerator, Dice dice) { this.collectionsSelector = collectionsSelector; this.percentileSelector = percentileSelector; this.ammunitionGenerator = ammunitionGenerator; this.specialAbilitiesGenerator = specialAbilitiesGenerator; this.specificGearGenerator = specificGearGenerator; this.booleanPercentileSelector = booleanPercentileSelector; this.spellGenerator = spellGenerator; this.dice = dice; }
public SpecificGearGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, ICollectionsSelector collectionsSelector, IChargesGenerator chargesGenerator, IPercentileSelector percentileSelector, ISpellGenerator spellGenerator, IBooleanPercentileSelector booleanPercentileSelector, Dice dice, ISpecialAbilitiesGenerator specialAbilitiesGenerator) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.collectionsSelector = collectionsSelector; this.chargesGenerator = chargesGenerator; this.percentileSelector = percentileSelector; this.spellGenerator = spellGenerator; this.booleanPercentileSelector = booleanPercentileSelector; this.dice = dice; this.specialAbilitiesGenerator = specialAbilitiesGenerator; }
public StaffGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, IChargesGenerator chargesGenerator, ICollectionSelector collectionsSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator, JustInTimeFactory justInTimeFactory) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.chargesGenerator = chargesGenerator; this.collectionsSelector = collectionsSelector; this.specialAbilitiesGenerator = specialAbilitiesGenerator; this.justInTimeFactory = justInTimeFactory; }
public MagicalArmorGenerator( ITreasurePercentileSelector percentileSelector, ICollectionSelector collectionsSelector, ISpecialAbilitiesGenerator specialAbilitiesGenerator, ISpecificGearGenerator specificGearGenerator, JustInTimeFactory justInTimeFactory) { this.percentileSelector = percentileSelector; this.collectionsSelector = collectionsSelector; this.specialAbilitiesGenerator = specialAbilitiesGenerator; this.specificGearGenerator = specificGearGenerator; this.justInTimeFactory = justInTimeFactory; }
public void Setup() { itemAttributes = new List <string>(); mockCollectionsSelector = new Mock <ICollectionsSelector>(); mockPercentileSelector = new Mock <IPercentileSelector>(); mockBooleanPercentileSelector = new Mock <IBooleanPercentileSelector>(); mockSpecialAbilityAttributesSelector = new Mock <ISpecialAbilityAttributesSelector>(); mockDice = new Mock <Dice>(); names = new List <string>(); power = "power"; mockPercentileSelector.Setup(p => p.SelectAllFrom(It.IsAny <string>())).Returns(names); mockDice.Setup(d => d.Roll(1).d(It.IsAny <int>()).AsSum()).Returns(1); specialAbilitiesGenerator = new SpecialAbilitiesGenerator(mockCollectionsSelector.Object, mockPercentileSelector.Object, mockSpecialAbilityAttributesSelector.Object, mockBooleanPercentileSelector.Object, mockDice.Object); }
public SpecificGearGenerator(ITypeAndAmountPercentileSelector typeAndAmountPercentileSelector, ICollectionSelector collectionsSelector, IChargesGenerator chargesGenerator, ITreasurePercentileSelector percentileSelector, ISpellGenerator spellGenerator, ISpecialAbilitiesGenerator specialAbilitiesGenerator, JustInTimeFactory justInTimeFactory, IReplacementSelector replacementSelector) { this.typeAndAmountPercentileSelector = typeAndAmountPercentileSelector; this.collectionsSelector = collectionsSelector; this.chargesGenerator = chargesGenerator; this.percentileSelector = percentileSelector; this.spellGenerator = spellGenerator; this.specialAbilitiesGenerator = specialAbilitiesGenerator; this.justInTimeFactory = justInTimeFactory; this.replacementSelector = replacementSelector; }