public void ReturnSandboxAsDefault()
        {
            var configuration = new PayPalRestConfiguration();

            var dictionary = configuration.ToDictionary();

            Assert.AreEqual("sandbox", dictionary["mode"]);
        }
        public void ReturnModeIfSet()
        {
            var configuration = new PayPalRestConfiguration {
                Mode = "SANDBOX"
            };

            var dictionary = configuration.ToDictionary();

            Assert.AreEqual("sandbox", dictionary["mode"]);
        }
        public void TestInitialize()
        {
            var configuration = new PayPalRestConfiguration
            {
                ClientId     = "AaRbKe2riATpDsXJy0x9ut3_qfE23e5ftPeGQmdl3j7HUFMaLnFArVe7QqC8chhvcVilQb9-QnXNzNWr",
                ClientSecret = "EAdr_JFKnrP-qdYehzOxfflmxCAvqgMcRrWgf4yOgFv-pNdmE49e92ETopqGNnjgiSJlFTe5cu5GehMh",
                Mode         = "sandbox"
            };

            _logger        = new Mock <ILog>();
            _payPalService = new PayPalService(configuration, _logger.Object);
        }