예제 #1
0
 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);
 }
예제 #2
0
 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}");
 }        
 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}");
 }