public void CanCreateFamilyTreeWithParents() { var generator = new FamilyHistoryCreator(new NameTestBuilder()); var familyTree = generator.CreateFamilyTree("Human"); Assert.IsNotNullOrEmpty(familyTree.Father); Assert.IsNotNullOrEmpty(familyTree.Mother); }
private History GenerateHistory(CharacterSheet character) { var history = new History(); //Homeland var homelandSelector = new HomelandSelector(new HomelandYamlGateway()); history.Homeland = homelandSelector.SelectHomelandByRace(character.Race.Name); // Family var familyHistory = new FamilyHistoryCreator(this.nameGenerator); history.FamilyTree = familyHistory.CreateFamilyTree(character.Race.Name); // Drawback var drawback = new CharacterDrawbackSelector(new DrawbackYamlGateway()); history.Drawback = drawback.SelectDrawback(); return(history); }