Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the CharacterCreator class.
 /// </summary>
 /// <param name="nameGenerator"></param>
 /// <param name="originStoryGenerator"></param>
 public CharacterCreator(IRandomNameGenerator nameGenerator, OriginStoryGenerator originStoryGenerator, AdolescenceAndTrainingGenerator trainingGenerator, RelationshipGenerator relationshipGenerator)
 {
     RelationshipGenerator = relationshipGenerator;
     TrainingGenerator     = trainingGenerator;
     NameGenerator         = nameGenerator;
     OriginStoryGenerator  = originStoryGenerator;
 }
Esempio n. 2
0
 public BaseGeneratorTests()
 {
     _maleNamesForAssert   = new MockMaleNames();
     _femaleNamesForAssert = new MockFemaleNames();
     _mockRandomGenerator  = new SpecificRandomMocker();
     _nameGenerator        = new NameGeneratorBaseFixture(_mockRandomGenerator);
 }
 protected SpecificNameGeneratorTestsBase(IRandomNameGenerator randomNameGenerator, INameList maleNames, INameList femaleNames, INameList lastNames)
 {
     RandomNameGenerator   = randomNameGenerator;
     MaleNamesCollection   = maleNames;
     FemaleNamesCollection = femaleNames;
     LastNamesCollection   = lastNames;
 }
 public SwedishNameGeneratorTests() : base(new SwedishNameGenerator(), MaleNames.Default, FemaleNames.Default, LastNames.Default)
 {
     _randomNameGenerator = new SwedishNameGenerator();
 }