public static void CreateUserProfile(Guid aspUserID, DateTime joinRoomTime, int type, int roomID)
        {
            var profileRep = new UserProfileRepository();
            UserProfile up = new UserProfile
            {
                aspUserID = aspUserID,
                JoinRoomTime = joinRoomTime.ToUniversalTime(),
                Type = type,
                RoomID = roomID
            };

            profileRep.Create(up);
            profileRep.SaveChanges();
        }
        public static void CreateTestProfiles(int quantity)
        {
            UserProfile newProfile = new UserProfile();
            Random rnd = new Random();

            for (int i = 1; i <= quantity; i++)
            {
                string username = "";

                username = "TestUser" + rnd.Next(10000,100000).ToString();

                Membership.CreateUser(username, "tester!", "[email protected]");

                newProfile.aspUserID = (Guid)Membership.GetUser(username).ProviderUserKey;
                newProfile.JoinRoomTime = DateTime.Now.ToUniversalTime();
                newProfile.RoomID = RoomController.NextRoomID();
                newProfile.Type = 0;

                var profileRep = new UserProfileRepository();
                profileRep.Create(newProfile);
                profileRep.SaveChanges();
            }
        }