예제 #1
0
        public void PayPalResourceEndpointInvalidModeTest()
        {
            var config = new Dictionary <string, string> {
                { "mode", "test" }
            };

            Assert.Equal(BaseConstants.RESTSandboxEndpoint, PayPalResource.GetEndpoint(config));
        }
예제 #2
0
        public void PayPalResourceEndpointLiveModeTest()
        {
            var config = new Dictionary <string, string> {
                { "mode", "live" }
            };

            Assert.Equal(BaseConstants.RESTLiveEndpoint, PayPalResource.GetEndpoint(config));
        }
예제 #3
0
        public void PayPalResourceEndpointOverrideWithTrailingSlashTest()
        {
            var config = new Dictionary <string, string> {
                { "endpoint", "http://test/" }
            };

            Assert.Equal("http://test/", PayPalResource.GetEndpoint(config));
        }
예제 #4
0
        public void PayPalResourceEndpointDefaultTest()
        {
            var config = new Dictionary <string, string>();

            Assert.Equal(BaseConstants.RESTSandboxEndpoint, PayPalResource.GetEndpoint(config));
        }