public void when_updating_an_order_transaction() { var stubHttp = HttpMockRepository.At("http://localhost:9191"); stubHttp.Stub(x => x.Put("/v2/transactions/orders/123")) .Return(TaxjarFixture.GetJSON("orders/show.json")) .OK(); var order = client.UpdateOrder(new { transaction_id = "123", amount = 17.95, shipping = 2, line_items = new[] { new { quantity = 1, product_identifier = "12-34243-0", description = "Heavy Widget", product_tax_code = "20010", unit_price = 15, discount = 0, sales_tax = 0.95 } } }); this.AssertOrder(order); }