public void SavePayPalTransactionStartTest() { string customerId = "someCustomerId"; string prodId = "someProdId"; var response = new SetExpressCheckoutResponseType() { Ack = AckCodeType.CustomCode, Any = new XmlDocument().CreateElement("someXmlElement"), Build = "someBuild", CorrelationID = "someCorrelationId", Errors = new []{ new ErrorType { ErrorCode = "someErrorCode", ErrorParameters = new []{ new ErrorParameterType { ParamID = "someParamId", Value = "someValue" }}, LongMessage = "someLongMsg", SeverityCode = SeverityCodeType.CustomCode, ShortMessage = "someShortMsg" }}, Timestamp = new DateTime(), TimestampSpecified = true, Token = "someToken", Version = "someVersion" }; var ppProcessor = new PayPalProcessorAccessor(); ppProcessor.SavePayPalTransactionStart(customerId, prodId, response); //verify saved var ds = GetTable("PayPalBeginExpressCheckout"); Assert.IsTrue(isObjectSaved(customerId, prodId, response, ds)); }