Ejemplo n.º 1
0
        public void When_simple_init_payment_It_can_create_http_request()
        {
            var initializePaymentRequest = InitializePaymentRequestTestData.CreateSimple(_orderId);

            var httpRequest = SUT.Create(initializePaymentRequest);

            httpRequest.ShouldBe().PostWithJson(ExpectedJson.SimpleInitPayment);
        }
Ejemplo n.º 2
0
        public void When_simple_init_payment_It_generates_relative_url_with_order_id()
        {
            var initializePaymentRequest = InitializePaymentRequestTestData.CreateSimple(_orderId);

            var httpRequest = SUT.Create(initializePaymentRequest);

            httpRequest.ShouldBe().PostAgainst(
                "/orders/{0}/initializePayment",
                _orderId.ToString("n"));
        }