コード例 #1
0
 private static Headline CreateHeadline(HeadlineInfo headline)
 {
     return(new Headline
     {
         Slug = headline.Title.Slugify(),
         Title = headline.Title,
         Lead = LoremIpsum.NextParagraph(minSentenceCount: 1, maxSentenceCount: 2),
         Text = LoremIpsum.NextParagraph(minSentenceCount: 2, maxSentenceCount: 4),
         ReleaseDate = ActinUraniumInfo.NextDate(),
         Author = headline.Author,
         Tag = headline.Tag,
         HeadlineImages = headline.Images
     });
 }
コード例 #2
0
 private static Creation CreateCreation(string title, Customer customer, List <CreationImage> images)
 {
     return(new Creation
     {
         Slug = title.Slugify(),
         Title = title,
         ReleaseDate = ActinUraniumInfo.NextDate(),
         Mission = LoremIpsum.NextParagraph(minSentenceCount: 2, maxSentenceCount: 3),
         Strategy = LoremIpsum.NextParagraph(minSentenceCount: 1, maxSentenceCount: 3),
         Execution = LoremIpsum.NextParagraph(minSentenceCount: 1, maxSentenceCount: 3),
         Customer = customer,
         CreationImages = images
     });
 }