public void PayPalResourceEndpointInvalidModeTest() { var config = new Dictionary <string, string> { { "mode", "test" } }; Assert.Equal(BaseConstants.RESTSandboxEndpoint, PayPalResource.GetEndpoint(config)); }
public void PayPalResourceEndpointLiveModeTest() { var config = new Dictionary <string, string> { { "mode", "live" } }; Assert.Equal(BaseConstants.RESTLiveEndpoint, PayPalResource.GetEndpoint(config)); }
public void PayPalResourceEndpointOverrideWithTrailingSlashTest() { var config = new Dictionary <string, string> { { "endpoint", "http://test/" } }; Assert.Equal("http://test/", PayPalResource.GetEndpoint(config)); }
public void PayPalResourceEndpointDefaultTest() { var config = new Dictionary <string, string>(); Assert.Equal(BaseConstants.RESTSandboxEndpoint, PayPalResource.GetEndpoint(config)); }