Ejemplo n.º 1
0
        public void ClientInfoObjectToXMLTest()
        {
            Helper <DTO.WalPay.ClientInfo> helper = new Helper <DTO.WalPay.ClientInfo>();

            DTO.WalPay.ClientInfo model = new DTO.WalPay.ClientInfo();
            model.Surname = "Cullen";

            System.Xml.XmlDocument result = helper.Serialize(model);

            Assert.Inconclusive();
        }
Ejemplo n.º 2
0
        public void ClientInfoToStringTest()
        {
            DC.PaymentProvider.DTO.WalPay.ClientInfo model = new DTO.WalPay.ClientInfo();

            model.AccountNumber = "1234";

            String actual   = model.ToString();
            String expected = "<ClientInfo><AccountNumber>hr385645</AccountNumber><Name>Bob</Name><Surname>Smith</Surname><Address>17 Main Street</Address><City>New York</City><State>NY</State><Zip>10348</Zip><Country>US</Country><Telephone>2122101938</Telephone><Email>[email protected]</Email><DOB>1986-08-12</DOB><ClientIP>215.45.81.1</ClientIP></ClientInfo>";

            Assert.AreSame(actual, expected);
        }