public static MockedMagicPlaylistGateway AddFastUser(this MockedMagicPlaylistGateway mockedMagicPlaylistGateway, 
            int id, string firstname, string lastname, string email)
        {
            var userModel = new UserModel
            {
                Id = id,
                Firstname = firstname,
                Lastname = lastname,
                Email = email,
                Birthday = "1980-02-25",
                Country = "FR",
                Gender = "M",
                Lang = "FR",
                Name = string.Format("{0} - {1}", firstname, lastname)
            };

            return mockedMagicPlaylistGateway.AddUser(userModel);
        }
 /// <summary>
 /// Adds the user.
 /// </summary>
 /// <param name="db">The db.</param>
 /// <param name="username">The username.</param>
 /// <param name="passwd">The passwd.</param>
 public static void AddUser(this IDatabase db, string username, IEnumerable<char> passwd)
 {
     Condition.Requires(username, "username").IsNotNullOrWhitespace();
     Condition.Requires(passwd, "passwd").IsNotNull().IsLongerThan(1);
     SecureString ss = new SecureString();
     foreach (char c in passwd)
     {
         ss.AppendChar(c);
     }
     db.AddUser(username, ss);
 }