public void Setup() { mockDice = new Mock <Dice>(); mockPercentileSelector = new Mock <IPercentileSelector>(); mockBooleanPercentileSelector = new Mock <IBooleanPercentileSelector>(); mockCollectionsSelector = new Mock <ICollectionsSelector>(); curseGenerator = new CurseGenerator(mockDice.Object, mockPercentileSelector.Object, mockBooleanPercentileSelector.Object, mockCollectionsSelector.Object); itemVerifier = new ItemVerifier(); }
public MagicalItemGeneratorCurseDecorator(MagicalItemGenerator innerGenerator, ICurseGenerator curseGenerator) { this.innerGenerator = innerGenerator; this.curseGenerator = curseGenerator; }