Exemplo n.º 1
0
 public static UserAchievement GetRandomEntity(User user = null, Achievement achievement = null)
 {
     return(new UserAchievement
     {
         User = user ?? UserDumbData.GetRandomEntity(),
         Achievement = achievement ?? AchievementDumbData.GetRandomEntity()
     });
 }
Exemplo n.º 2
0
 public static Thank GetRandomEntity()
 {
     return(new Thank
     {
         FromUser = UserDumbData.GetRandomEntity(),
         Text = RandomHelper.GetRandomString(50),
         ToUserId = Guid.NewGuid()
     });
 }
Exemplo n.º 3
0
        public static Event GetRandomEntity()
        {
            var rnd = new Random();

            return(new Event
            {
                Description = RandomHelper.GetRandomString(200),
                User = UserDumbData.GetRandomEntity(),
                Type = (EventType)rnd.Next(Enum.GetNames(typeof(EventType)).Length)
            });
        }