Пример #1
0
        public override RandomText GetRandom()
        {
            IEnumerable <string> paragraphs = Facker.LoremParagraphs(16);
            string text = string.Concat(paragraphs);

            return(new RandomText {
                Name = "Lorem ipsum", Text = text
            });
        }
Пример #2
0
        protected internal override string GetStringValue(EmailColumnInfo columnInfo, Country country)
        {
            string mail = Facker.Email();

            if (columnInfo.MaxLength > 0 && mail.Length > columnInfo.MaxLength)
            {
                mail = mail.Substring(mail.Length - columnInfo.MaxLength);
            }
            return(mail);
        }