public void RESTAPICallPreHandlerEndpointTest() { Dictionary<string, string> config = new Dictionary<string, string>(); config.Add("endpoint", "https://localhost.sandbox.paypal.com"); RESTAPICallPreHandler target = new RESTAPICallPreHandler(config); Assert.AreEqual(target.GetEndpoint().EndsWith("/"), true); }
public void RESTAPICallPreHandlerPayloadTest() { Dictionary<string, string> config = new Dictionary<string, string>(); config.Add("endpoint", "https://localhost.sandbox.paypal.com"); RESTAPICallPreHandler target = new RESTAPICallPreHandler(config); target.Payload = "{ key : value}"; Assert.AreEqual(target.Payload, "{ key : value}"); }