コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BraintreePaymentMethodApiService"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        /// <param name="settings">
        /// The settings.
        /// </param>
        /// <param name="customerApiService">
        /// The customer api provider.
        /// </param>
        internal BraintreePaymentMethodApiService(IMerchelloContext merchelloContext, BraintreeProviderSettings settings, IBraintreeCustomerApiService customerApiService)
            : base(merchelloContext, settings)
        {
            Mandate.ParameterNotNull(customerApiService, "customerApiProvider");

            _braintreeCustomerApiService = customerApiService;
        }
コード例 #2
0
        public override void TestFixtureSetup()
        {
            base.TestFixtureSetup();

            this._braintreeCustomerApiService = new BraintreeCustomerApiService(MerchelloContext.Current, this.BraintreeProviderSettings);

            this._address = new Core.Models.Address()
            {
                AddressType  = AddressType.Billing,
                Organization = "Across the Pond",
                Address1     = "111 Somewhere",
                Locality     = "Bellingham",
                Region       = "WA",
                PostalCode   = "98225",
                CountryCode  = "US"
            };
        }
        public override void TestFixtureSetup()
        {
            base.TestFixtureSetup();

            _braintreeCustomerApiService = new BraintreeCustomerApiService(MerchelloContext.Current, BraintreeProviderSettings);

            _address = new Core.Models.Address()
            {
                AddressType = AddressType.Billing,
                Organization = "Mindfly",
                Address1 = "114 W. Magnolia St. Suite 300",
                Locality = "Bellingham",
                Region = "WA",
                PostalCode = "98225",
                CountryCode = "US"
            };
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BraintreePaymentMethodApiService"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        /// <param name="settings">
        /// The settings.
        /// </param>
        /// <param name="customerApiService">
        /// The customer api provider.
        /// </param>
        internal BraintreePaymentMethodApiService(IMerchelloContext merchelloContext, BraintreeProviderSettings settings, IBraintreeCustomerApiService customerApiService)
            : base(merchelloContext, settings)
        {
            Mandate.ParameterNotNull(customerApiService, "customerApiProvider");

            _braintreeCustomerApiService = customerApiService;
        }
コード例 #5
0
        public override void TestFixtureSetup()
        {
            base.TestFixtureSetup();

            this._braintreeCustomerApiService = new BraintreeCustomerApiService(MerchelloContext.Current, this.BraintreeProviderSettings);

            this._address = new Core.Models.Address()
            {
                AddressType = AddressType.Billing,
                Organization = "Across the Pond",
                Address1 = "111 Somewhere",
                Locality = "Bellingham",
                Region = "WA",
                PostalCode = "98225",
                CountryCode = "US"
            };
        }