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

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

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

            Assert.AreEqual("123", orders[0]);
            Assert.AreEqual("456", orders[1]);
        }