private int CreateIBSAccount() { var service = new WebAccount3Service { Url = "http://apcurium.drivelinq.com:16928/IBSCab/IBSCab.dll/soap/IWebAccount3" }; var account = new TBookAccount3 { WEBID = Guid.NewGuid().ToString().Substring(0, 5), Address = new TWEBAddress(), Email2 = "*****@*****.**", Title = "", FirstName = "Apcurium", LastName = "Test", Phone = "5141234569", MobilePhone = "5141234569", WEBPassword = "******", AccType = TAccountType.actWebAccount, }; var ibsAcccountId = service.SaveAccount3("taxi", "test", account); Trace.WriteLine("IBS account created: " + ibsAcccountId); return(ibsAcccountId); }
public void Setup() { Sut = new WebAccount3Service { Url = "http://apcurium.drivelinq.com:16928/IBSCab/IBSCab.dll/soap/IWebAccount3" }; }
private bool CreatingAccount(string url, string username, string password, ref StringBuilder result) { var account = new TBookAccount3(); account.ServiceProviderID = _defaultProvider; account.WEBID = Guid.NewGuid().ToString(); account.WEBPassword = "******"; account.LastName = "Test LastName"; account.Phone = "5145551212"; account.Email2 = "*****@*****.**"; account.MobilePhone = account.Phone; account.Address = new TWEBAddress(); result.AppendLine("Calling SaveAccount3 for url :" + url + "IWebAccount3"); var account3Service = new WebAccount3Service { Url = url + "IWebAccount3" }; try { var id = account3Service.SaveAccount3(username, password, account); if (id > 0) { result.AppendLine("Call sucessfull, account with id #" + id + " created"); } else { result.AppendLine("Unable to create account, no id returned, error code return = " + id); } return(id > 0); } catch (Exception ex) { result.AppendLine("Error calling SaveAccount3 : " + ex.Message); result.AppendLine("Error details : " + ex.StackTrace); } return(false); }