Esempio n. 1
0
        public void CanCreateFamilyTreeWithParents()
        {
            var generator  = new FamilyHistoryCreator(new NameTestBuilder());
            var familyTree = generator.CreateFamilyTree("Human");

            Assert.IsNotNullOrEmpty(familyTree.Father);
            Assert.IsNotNullOrEmpty(familyTree.Mother);
        }
Esempio n. 2
0
        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);
        }