Inheritance: ScreenBase
コード例 #1
0
		public void ShouldDisplayErrorMessageWhenPastExpiryDateEntered(string errorMessage)
		{
			var payment = new StartScreen(app, platform);
			payment.TapPayment()
			       .EnterExpiryDate("1215");

			AssertResult(errorMessage);
		}
コード例 #2
0
		public void ShouldDisplayErrorMessageWhenInvalidCardNumberEntered(string errorMessage)
		{
			var payment = new StartScreen(app, platform);
			payment.TapPayment()
			       .EnterCardNumber("1234567890123456");

			AssertResult(errorMessage);
		}
コード例 #3
0
		public void ShouldDisplayAmexNotSupportedWhenAmexEnteredAndNotEnabled(string errorMessage)
		{
			var payment = new StartScreen(app, platform);
			payment.TapPayment()
			       .EnterCardNumber("3400");

			AssertResult(errorMessage);
		}
コード例 #4
0
		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);
		}
コード例 #5
0
		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);
		}