private static Interaction CreateRandomInteraction(Tuple <int, int> postUserPair)
 {
     return(new Interaction
     {
         PostId = postUserPair.Item1,
         UserId = postUserPair.Item2,
         Type = RandomNumberGenerator.GetInteractionType(),
         Date = DateGenerator.GetInteractionDate(),
     });
 }
Ejemplo n.º 2
0
 private static Post CreateRandomPost(int index)
 {
     return(new Post
     {
         Message = MessageGenerator.GetMessage(index),
         UserId = RandomNumberGenerator.GetUserId(),
         ImageUrl = ImageGenerator.GetPostImage(index),
         PostedAt = DateGenerator.GetPostDate()
     });
 }