Пример #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;
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 public int CreateAccountWithInvitation(int invitationid, string code, TransitAccount ta) {
     object[] results = this.Invoke("CreateAccountWithInvitation", new object[] {
                 invitationid,
                 code,
                 ta});
     return ((int)(results[0]));
 }
Пример #4
0
 /// <remarks/>
 public void CreateAccountWithInvitationAsync(int invitationid, string code, TransitAccount ta) {
     this.CreateAccountWithInvitationAsync(invitationid, code, ta, null);
 }
Пример #5
0
 /// <remarks/>
 public void CreateOrUpdateAccountAsync(string ticket, TransitAccount t_instance) {
     this.CreateOrUpdateAccountAsync(ticket, t_instance, null);
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
 public int CreateOrUpdateAccount(string ticket, TransitAccount t_instance) {
     object[] results = this.Invoke("CreateOrUpdateAccount", new object[] {
                 ticket,
                 t_instance});
     return ((int)(results[0]));
 }
Пример #9
0
 /// <remarks/>
 public void CreateAccountWithOpenIdAsync(string betapassword, string consumerurl, string email, TransitAccount ta) {
     this.CreateAccountWithOpenIdAsync(betapassword, consumerurl, email, ta, null);
 }
Пример #10
0
 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]));
 }
Пример #11
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);
 }
Пример #12
0
 /// <remarks/>
 public void CreateAccountAsync(string betapassword, string emailaddress, TransitAccount ta) {
     this.CreateAccountAsync(betapassword, emailaddress, ta, null);
 }
Пример #13
0
 public int CreateAccount(string betapassword, string emailaddress, TransitAccount ta) {
     object[] results = this.Invoke("CreateAccount", new object[] {
                 betapassword,
                 emailaddress,
                 ta});
     return ((int)(results[0]));
 }