Example #1
0
        public void NewRefund_NullParentTransactionID_ReturnsStatus400()
        {
            Vpos merchant = CreateDefaultVpos();

            var response = merchant.NewRefund(null);

            Assert.Equal(400, response.StatusCode);
        }
Example #2
0
        public void NewRefund_ParentTransactionID_ReturnsStatus202()
        {
            Vpos merchant = CreateDefaultVpos();

            var response = merchant.NewRefund("1jYQryG3Qo4nzaOKgJxzWDs25Hv");

            Assert.Equal(202, response.StatusCode);
        }
Example #3
0
        public void NewRefund_InvalidSupervisorCard_ReturnsStatus400()
        {
            Vpos         merchant = CreateDefaultVpos();
            const string INVALID_SUPERVISOR_CARD = "";

            var response = merchant.NewRefund("1jYQryG3Qo4nzaOKgJxzWDs25Hv", supervisorCard: INVALID_SUPERVISOR_CARD);

            Assert.Equal(400, response.StatusCode);
        }