Ejemplo n.º 1
0
        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);
        }