public void NewRefund_NullParentTransactionID_ReturnsStatus400() { Vpos merchant = CreateDefaultVpos(); var response = merchant.NewRefund(null); Assert.Equal(400, response.StatusCode); }
public void NewRefund_ParentTransactionID_ReturnsStatus202() { Vpos merchant = CreateDefaultVpos(); var response = merchant.NewRefund("1jYQryG3Qo4nzaOKgJxzWDs25Hv"); Assert.Equal(202, response.StatusCode); }
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); }