Example #1
0
        public Article()
        {
            Id       = Guid.NewGuid();
            AuthorId = Guid.NewGuid();
            var lorem = new Bogus.DataSets.Lorem();

            Title       = lorem.Sentence();
            Description = lorem.Paragraph(5);
        }
        private static IEnumerable <Message> RandomMessages()
        {
            Random         random       = new Random();
            List <Message> messages     = new List <Message>();
            var            bogusMessage = new Bogus.DataSets.Lorem();
            var            person       = new Bogus.Person();

            for (int i = 0; i < random.Next(1, 5); i++)
            {
                messages.Add(new Message(
                                 bogusMessage.Paragraph(),
                                 person.FirstName,
                                 person.LastName,
                                 person.Email
                                 ));
            }

            return(messages);
        }