private Survey CreateSurveyOnInputBasis(Entity.Command command) { var survey = _repository.Create(); survey.Player = _player; survey.Question = _textFactory.CreateText(GetQuestionOption(command)); survey.Choices = GetChoices(command).Select(choice => _textFactory.CreateText(choice)).ToList(); survey.Votes = new List <Domain.Entity.Vote>(); return(survey); }
private IEnumerable <BaseWrite> Create(TextFactory textFactory, string text, Font font, StringAlignment aligment, int count) { var list = new List <BaseWrite>(); for (int i = 0; i < count; i++, countItem++) { list.Add(textFactory.CreateText($"{text} {countItem}", font, aligment)); } return(list); }