SanSYS

Untitled

Jun 14th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.  
  3. namespace TestDI.Lib
  4. {
  5.     public class SomeClass
  6.     {
  7.         public Guid ID { get; set; } = Guid.NewGuid();
  8.  
  9.         public DateTime PubDate { get; set; } = Faker.DateTimeFaker.DateTime(DateTime.Now.AddYears(-1), DateTime.Now);
  10.  
  11.         public string Name { get; set; } = Faker.NameFaker.Name();
  12.  
  13.         public string GetIdea() => Faker.TextFaker.Sentence();
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment