public void Setup()
        {
            mockTypeAndAmountPercentileSelector = new Mock <ITypeAndAmountPercentileSelector>();
            mockCollectionsSelector             = new Mock <ICollectionsSelector>();
            mockSpecialAbilitiesGenerator       = new Mock <ISpecialAbilitiesGenerator>();
            mockChargesGenerator          = new Mock <IChargesGenerator>();
            mockSpellGenerator            = new Mock <ISpellGenerator>();
            mockPercentileSelector        = new Mock <IPercentileSelector>();
            mockBooleanPercentileSelector = new Mock <IBooleanPercentileSelector>();
            mockDice = new Mock <Dice>();
            specificGearGenerator = new SpecificGearGenerator(mockTypeAndAmountPercentileSelector.Object, mockCollectionsSelector.Object, mockChargesGenerator.Object, mockPercentileSelector.Object, mockSpellGenerator.Object, mockBooleanPercentileSelector.Object, mockDice.Object, mockSpecialAbilitiesGenerator.Object);
            result = new TypeAndAmountPercentileResult();

            power    = "power";
            gearType = "gear type";

            result.Type   = "specific gear";
            result.Amount = 1;
            mockTypeAndAmountPercentileSelector.Setup(s => s.SelectFrom(It.IsAny <string>())).Returns(result);
            itemVerifier = new ItemVerifier();
        }
示例#2
0
 public void Setup()
 {
     item         = new Item();
     itemVerifier = new ItemVerifier();
 }