public void RequestBeyondLimit() { var cardNumber = "5115490833902574"; string token = string.Empty; var sut = new TransactionProcessor(_gateway); sut.PerformFullCreditProcess(cardNumber, 500m, out token); Assert.Equal(string.Empty, token); }
public void CreditAvailableTest() { var cardNumber = "4800037508664675"; string token = string.Empty; var sut = new TransactionProcessor(_gateway); sut.PerformFullCreditProcess(cardNumber, 500m, out token); Assert.NotEqual(string.Empty, token); }
public void InvalidNumberTest() { var cardNumber = "42"; string token = string.Empty; var sut = new TransactionProcessor(_gateway); sut.PerformFullCreditProcess(cardNumber, 500m, out token); Assert.Equal(string.Empty, token); }
public void CreditAvailableButReservedTest() { var cardNumber = "4836803436404398198"; string token = string.Empty; _gateway.ReserveCredit(cardNumber, 500m); var sut = new TransactionProcessor(_gateway); sut.PerformFullCreditProcess(cardNumber, 500m, out token); Assert.Equal(string.Empty, token); }
public void CreditNotAvailableTest() { var cardNumber = "342844743236943"; string token = string.Empty; _gateway.CompleteTransaction(cardNumber, _gateway.ReserveCredit(cardNumber, 500m)); var sut = new TransactionProcessor(_gateway); sut.PerformFullCreditProcess(cardNumber, 500m, out token); Assert.Equal(string.Empty, token); }