Ejemplo n.º 1
0
 public MundaneWeaponGenerator(IPercentileSelector percentileSelector, IAmmunitionGenerator ammunitionGenerator, ICollectionsSelector collectionsSelector, IBooleanPercentileSelector booleanPercentileSelector, Dice dice)
 {
     this.percentileSelector        = percentileSelector;
     this.ammunitionGenerator       = ammunitionGenerator;
     this.collectionsSelector       = collectionsSelector;
     this.booleanPercentileSelector = booleanPercentileSelector;
     this.dice = dice;
 }
Ejemplo n.º 2
0
        public void Setup()
        {
            mockPercentileSelector = new Mock <IPercentileSelector>();
            mockAttributesSelector = new Mock <ICollectionsSelector>();
            mockDice            = new Mock <Dice>();
            ammunitionGenerator = new AmmunitionGenerator(mockPercentileSelector.Object, mockDice.Object, mockAttributesSelector.Object);
            itemVerifier        = new ItemVerifier();

            mockDice.Setup(d => d.Roll(1).d(100).AsSum()).Returns(0);
        }
 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;
 }