public void ShouldDisplayErrorMessageWhenPastExpiryDateEntered(string errorMessage) { var payment = new StartScreen(app, platform); payment.TapPayment() .EnterExpiryDate("1215"); AssertResult(errorMessage); }
public void ShouldDisplayErrorMessageWhenInvalidCardNumberEntered(string errorMessage) { var payment = new StartScreen(app, platform); payment.TapPayment() .EnterCardNumber("1234567890123456"); AssertResult(errorMessage); }
public void ShouldDisplayAmexNotSupportedWhenAmexEnteredAndNotEnabled(string errorMessage) { var payment = new StartScreen(app, platform); payment.TapPayment() .EnterCardNumber("3400"); AssertResult(errorMessage); }
public void ShouldDisplayErrorMessageWhenFutureStartDateEntered(string errorMessage) { var date = DateTime.Now.AddYears(1).ToString("MMyy"); app.Invoke(setSetting, "Maestro"); var payment = new StartScreen(app, platform); payment.TapPayment() .EnterCardNumber("67") .EnterStartDate(date); AssertResult(errorMessage); }
public void ShouldDisplayErrorWhenExpiryDateMoreThanTenYearsInFuture(string errorMessage) { var date = DateTime.Now.AddYears(11).ToString("MMyy"); var payment = new StartScreen(app, platform); payment.TapPayment() .EnterExpiryDate(date); AssertResult(errorMessage); }