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; }
/// <remarks/> public void CreateAccountWithInvitationAsync(int invitationid, string code, TransitAccount ta, object userState) { if ((this.CreateAccountWithInvitationOperationCompleted == null)) { this.CreateAccountWithInvitationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateAccountWithInvitationOperationCompleted); } this.InvokeAsync("CreateAccountWithInvitation", new object[] { invitationid, code, ta}, this.CreateAccountWithInvitationOperationCompleted, userState); }
public int CreateAccountWithInvitation(int invitationid, string code, TransitAccount ta) { object[] results = this.Invoke("CreateAccountWithInvitation", new object[] { invitationid, code, ta}); return ((int)(results[0])); }
/// <remarks/> public void CreateAccountWithInvitationAsync(int invitationid, string code, TransitAccount ta) { this.CreateAccountWithInvitationAsync(invitationid, code, ta, null); }
/// <remarks/> public void CreateOrUpdateAccountAsync(string ticket, TransitAccount t_instance) { this.CreateOrUpdateAccountAsync(ticket, t_instance, null); }
/// <remarks/> public void CreateOrUpdateAccountAsync(string ticket, TransitAccount t_instance, object userState) { if ((this.CreateOrUpdateAccountOperationCompleted == null)) { this.CreateOrUpdateAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrUpdateAccountOperationCompleted); } this.InvokeAsync("CreateOrUpdateAccount", new object[] { ticket, t_instance}, this.CreateOrUpdateAccountOperationCompleted, userState); }
/// <remarks/> public void CreateAccountWithOpenIdAsync(string betapassword, string consumerurl, string email, TransitAccount ta, object userState) { if ((this.CreateAccountWithOpenIdOperationCompleted == null)) { this.CreateAccountWithOpenIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateAccountWithOpenIdOperationCompleted); } this.InvokeAsync("CreateAccountWithOpenId", new object[] { betapassword, consumerurl, email, ta}, this.CreateAccountWithOpenIdOperationCompleted, userState); }
public int CreateOrUpdateAccount(string ticket, TransitAccount t_instance) { object[] results = this.Invoke("CreateOrUpdateAccount", new object[] { ticket, t_instance}); return ((int)(results[0])); }
/// <remarks/> public void CreateAccountWithOpenIdAsync(string betapassword, string consumerurl, string email, TransitAccount ta) { this.CreateAccountWithOpenIdAsync(betapassword, consumerurl, email, ta, null); }
public int CreateAccountWithOpenId(string betapassword, string consumerurl, string email, TransitAccount ta) { object[] results = this.Invoke("CreateAccountWithOpenId", new object[] { betapassword, consumerurl, email, ta}); return ((int)(results[0])); }
/// <remarks/> public void CreateAccountAsync(string betapassword, string emailaddress, TransitAccount ta, object userState) { if ((this.CreateAccountOperationCompleted == null)) { this.CreateAccountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateAccountOperationCompleted); } this.InvokeAsync("CreateAccount", new object[] { betapassword, emailaddress, ta}, this.CreateAccountOperationCompleted, userState); }
/// <remarks/> public void CreateAccountAsync(string betapassword, string emailaddress, TransitAccount ta) { this.CreateAccountAsync(betapassword, emailaddress, ta, null); }
public int CreateAccount(string betapassword, string emailaddress, TransitAccount ta) { object[] results = this.Invoke("CreateAccount", new object[] { betapassword, emailaddress, ta}); return ((int)(results[0])); }