public void Setup() { mockCollectionsSelector = new Mock<ICollectionsSelector>(); randomizer = new SetClassNameRandomizer(mockCollectionsSelector.Object); alignment = new Alignment(); alignmentClasses = new List<string>(); alignment.Goodness = "goodness"; alignment.Lawfulness = "lawfulness"; mockCollectionsSelector.Setup(s => s.SelectFrom(TableNameConstants.Set.Collection.ClassNameGroups, alignment.Full)).Returns(alignmentClasses); }
public EncounterCharacterGenerator(ICharacterGenerator characterGenerator, IAlignmentRandomizer alignmentRandomizer, IClassNameRandomizer anyPlayerClassNameRandomizer, ISetLevelRandomizer setLevelRandomizer, RaceRandomizer baseRaceRandomizer, RaceRandomizer metaraceRandomizer, IStatsRandomizer statsRandomizer, ICollectionSelector collectionSelector, ISetMetaraceRandomizer setMetaraceRandomizer, IClassNameRandomizer anyNPCClassNameRandomizer, ISetClassNameRandomizer setClassNameRandomizer, Dice dice) { this.characterGenerator = characterGenerator; this.alignmentRandomizer = alignmentRandomizer; this.anyPlayerClassNameRandomizer = anyPlayerClassNameRandomizer; this.setLevelRandomizer = setLevelRandomizer; this.baseRaceRandomizer = baseRaceRandomizer; this.metaraceRandomizer = metaraceRandomizer; this.statsRandomizer = statsRandomizer; this.collectionSelector = collectionSelector; this.setMetaraceRandomizer = setMetaraceRandomizer; this.anyNPCClassNameRandomizer = anyNPCClassNameRandomizer; this.setClassNameRandomizer = setClassNameRandomizer; this.dice = dice; challengeRatingRegex = new Regex(RegexConstants.ChallengeRatingPattern); setCharacterLevelRegex = new Regex(RegexConstants.SetCharacterLevelPattern); subTypeRegex = new Regex(RegexConstants.DescriptionPattern); }