public void FromNonce_ReturnsErrorWhenProvidedConsumedNonce()
{
Customer customer = gateway.Customer.Create(new CustomerRequest()).Target;
string nonce = TestHelper.GenerateUnlockedNonce(gateway, "4012888888881881", customer.Id);
gateway.CreditCard.FromNonce(nonce);
Exception exception = null;
try {
gateway.CreditCard.FromNonce(nonce);
} catch (Exception tempException) {
exception = tempException;
}
StringAssert.Contains("consumed", exception.Message);
Assert.IsNotNull(exception);
Assert.IsInstanceOf(typeof(NotFoundException), exception);
}