public void When_I_send_a_valid_auth_Then_the_transaction_should_complete_sync() { var response = _cardService.Authorize(_auth); Assert.That(response.Status(), Is.EqualTo("COMPLETED")); }
public void When_a_card_without_billing_details_is_used_Then_it_should_throw_InvalidRequestException_sync() { var auth = SampleFactory.CreateSampleIncompleteAuthorization(); Assert.Throws <Paysafe.Common.InvalidRequestException>(() => _cardPaymentService.Authorize(auth)); }