Ejemplo n.º 1
0
        public void PayPalResourceEndpointInvalidModeTest()
        {
            var config = new Dictionary <string, string> {
                { "mode", "test" }
            };

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

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

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

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