public void TestCancelReceivedMocked()
        {
            var paymentResultPspReference = MockPaymentDataRequest.GetTestPspReferenceMocked();
            //Call authorization test
            var client        = base.CreateMockTestClientRequest("Mocks/cancel-received.json");
            var modification  = new Modification(client);
            var cancelRequest = base.CreateCancelTestRequest(pspReference: paymentResultPspReference);
            var refundResult  = modification.Cancel(cancelRequest);

            Assert.AreEqual(refundResult.Response, Adyen.EcommLibrary.Model.Enum.ResponseEnum.CancelReceived);
        }
        public void TestCaptureMockedSuccess()
        {
            var paymentResultPspReference = MockPaymentDataRequest.GetTestPspReferenceMocked();
            //Call authorization test
            var client       = base.CreateMockTestClientRequest("Mocks/capture-success.json");
            var modification = new Modification(client);
            //Send capture call with psp refernce
            var captureRequest = base.CreateCaptureTestRequest(paymentResultPspReference);
            var captureResult  = modification.Capture(captureRequest);

            Assert.AreEqual(captureResult.Response, Adyen.EcommLibrary.Model.Enum.ResponseEnum.CaptureReceived);
        }
        public void TestCaptureError167()
        {
            var paymentResultPspReference = MockPaymentDataRequest.GetTestPspReferenceMocked();
            //Call authorization test
            var client         = base.CreateMockTestClientRequest("Mocks/capture-error-167.json");
            var modification   = new Modification(client);
            var captureRequest = base.CreateCaptureTestRequest(paymentResultPspReference);
            var captureResult  = modification.Capture(captureRequest);

            Assert.AreEqual(captureResult.Status, "422");
            Assert.AreEqual(captureResult.ErrorCode, "167");
        }