Exemple #1
0
 protected int CreateUser(string email, string password, DateTime dateofbirth)
 {
     SnCore.WebServices.WebAccountService.TransitAccount t_instance = new SnCore.WebServices.WebAccountService.TransitAccount();
     t_instance.Name = GetNewString();
     t_instance.Password = password;
     t_instance.Birthday = dateofbirth;
     SnCore.WebServices.WebAccountService.WebAccountService account_endpoint = new SnCore.WebServices.WebAccountService.WebAccountService();
     int id = account_endpoint.CreateAccount(string.Empty, email, t_instance);
     Console.WriteLine("Created user: {0}", id);
     Assert.IsTrue(id > 0);
     return id;
 }