public void LoginSfg() { CustomerService.CustomerService svc = new Tests.CustomerService.CustomerService(); string hen = Cryptography.Encrypt256("craux"); string hep = Cryptography.Encrypt256("andrewharper"); CustomerService.ResponseObject actual = svc.Login(hen, hep, false); Assert.AreEqual(true, actual != null); }
public void CompMembershipTest() { CustomerService.CustomerService client = new Tests.CustomerService.CustomerService(); string salutation = "Mr."; string firstname = "Michael"; string middleinitial = "Q"; string lastname = "Testcomp"; string suffix = ""; string professionaltitle = ""; string email = "*****@*****.**"; string businessname = ""; string address1 = "6217 Test Ave."; string address2 = ""; string address3 = ""; string city = "Austin"; string state = "TX"; string postalcode = "78704"; string country = "US"; string phone = "1231231234"; string ccnum = ""; string ccexpmonth = ""; string ccexpyear = ""; string amountpaid = "0"; string ccname = ""; string ccaddress = ""; string cccity = ""; string ccstate = ""; string ccpostalcode = ""; string pubcode = "PO"; string username = "******"; string pwd = "testcomp"; string keycode = "OLHCQ"; string subscriptionlength = "12"; string source = "9"; string customertype = "PERSONAL"; string expiredate = "7/1/2013"; string startdate = "6/13/2012"; string newsletters = ""; string mobilephone = ""; string secondemail = ""; string methodofpayment = ""; string cccountry = ""; string ccaddress2 = ""; string screenname = "testcomp"; string iscomp = "true"; CustomerService.ResponseObject response = client.SubscribeNewUser( salutation, firstname, middleinitial, lastname, suffix, professionaltitle, email, businessname, address1, address2, address3, city, state, postalcode, country, phone, ccnum, ccexpmonth, ccexpyear, amountpaid, ccname, ccaddress, cccity, ccstate, ccpostalcode, pubcode, username, pwd, keycode, subscriptionlength, source, customertype, expiredate, startdate, newsletters, mobilephone, secondemail, methodofpayment, cccountry, ccaddress2, screenname, iscomp); Assert.Equals(response.ResponseCode, 0); }
public void randomtest() { CustomerService.CustomerService client = new Tests.CustomerService.CustomerService(); //string eu = HarperCRYPTO.Cryptography.Encrypt256("mcoupland"); //string ep = HarperCRYPTO.Cryptography.Encrypt256("testing"); //client.Login(eu, ep, false); Tests.CustomerService.ISO3166[] t = client.GetISORegions("US"); //decrypt data for clay (auction info) //when have access to DB need to create service that does this for him // and tie it into the auction admin tool //CustomerService.CustomerService client = new Tests.CustomerService.CustomerService(); // no pwd //client.SubscribeNewUser("Mr", "JOSE", null, "MARTINEZ MARTINEZ", "", "", "*****@*****.**", "AUTO JUNTAS, S.A.", "POLIGONO INDUSTRIAL CAMPOLLANO CALLE C NUMERO UNO", "", "", "ALBACETE", "", "02007", "SPAIN", "+0034 967 216 212", "", "5", "2014", "425.00", "JOSE MANUEL MARTINEZ MARTINEZ", "POLIGONO INDUSTRIAL CAMPOLLANO, C, 1", "ALBACETE", "", "02007", "27", "jmmartinezmartinez", "josemanuel", "WPR350A", "12", "DRUPAL", "PERSONAL", "2013-01-26", "2012-01-26", "", "", "", "visa", "SPAIN", "", "Sr. Martínez"); }