Пример #1
0
 public static PollVotingRecord GetTestPollVotingRecord(this PersistenceTest test)
 {
     return(new PollVotingRecord
     {
         Customer = test.GetTestCustomer(),
         CreatedOnUtc = DateTime.UtcNow
     });
 }
Пример #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()
     });
 }
Пример #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()
     });
 }