public void When_I_lookup_an_auth_using_an_auth_id_Then_it_should_return_a_valid_auth_sync() { _auth = _cardService.Authorize(_auth); var returnedAuth = _cardService.Get(new Authorization(_auth.Id())); Assert.That(returnedAuth.Status(), Is.EqualTo("COMPLETED")); Assert.That(AuthorizationsAreEquivalent(_auth, returnedAuth), Is.True); }
public void When_I_get_an_auth_with_invalid_id_Then_it_should_throw_EntityNotFoundException_sync() { Assert.Throws <Paysafe.Common.EntityNotFoundException>(() => _cardPaymentService.Get(new Authorization("Invalid_id"))); }