Ejemplo n.º 1
0
 public static PollVotingRecord GetTestPollVotingRecord(this PersistenceTest test)
 {
     return(new PollVotingRecord
     {
         Customer = test.GetTestCustomer(),
         CreatedOnUtc = DateTime.UtcNow
     });
 }
Ejemplo n.º 2
0
 public static BlogComment GetTestBlogComment(this PersistenceTest test)
 {
     return(new BlogComment
     {
         IsApproved = true,
         CreatedOnUtc = new DateTime(2010, 01, 03),
         Customer = test.GetTestCustomer(),
         Store = test.GetTestStore()
     });
 }
Ejemplo n.º 3
0
 public static NewsComment GetTestNewsComment(this PersistenceTest test)
 {
     return(new NewsComment
     {
         CommentText = "Comment text 1",
         IsApproved = false,
         CreatedOnUtc = new DateTime(2010, 01, 03),
         Customer = test.GetTestCustomer(),
         Store = test.GetTestStore()
     });
 }