Beispiel #1
0
        public TopupServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new TopupService(this.StripeClient);

            this.createOptions = new TopupCreateOptions
            {
                Amount              = 123,
                Currency            = "usd",
                StatementDescriptor = "descriptor",
            };

            this.updateOptions = new TopupUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new TopupListOptions
            {
                Limit = 1,
            };
        }
Beispiel #2
0
        public TopupServiceTest()
        {
            this.service = new TopupService();

            this.createOptions = new TopupCreateOptions
            {
                Amount              = 123,
                Currency            = "usd",
                StatementDescriptor = "descriptor",
            };

            this.updateOptions = new TopupUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new TopupListOptions
            {
                Limit = 1,
            };
        }