public async Task When_I_send_a_valid_auth_Then_the_transaction_should_complete_asyn() { var response = await _cardService.AuthorizeAsync(_auth); Assert.That(response.Status(), Is.EqualTo("COMPLETED")); }
public void When_a_card_without_billing_details_is_used_Then_it_should_throw_InvalidRequestException_async() { var auth = SampleFactory.CreateSampleIncompleteAuthorization(); Assert.ThrowsAsync <Paysafe.Common.InvalidRequestException>(async() => await _cardPaymentService.AuthorizeAsync(auth)); }