Exemple #1
0
        public void when_listing_refund_transactions()
        {
            var stubHttp = HttpMockRepository.At("http://localhost:9191");

            stubHttp.Stub(x => x.Get("/v2/transactions/refunds"))
            .Return(TaxjarFixture.GetJSON("refunds/list.json"))
            .OK();

            var refunds = client.ListRefunds(new
            {
                from_transaction_date = "2015/05/01",
                to_transaction_date   = "2015/05/31"
            });

            Assert.AreEqual("321", refunds[0]);
            Assert.AreEqual("654", refunds[1]);
        }