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(); }
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); }