Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Given(@"I am on the web site home page")]
- public void GivenIAmOnTheWebSiteHomePage()
- {
- Console.WriteLine("You are on the Home Page");
- }
- [When(@"I enter a Username and Password in the Username and Password fields")]
- public void WhenIEnterAAndInTheUsernameAndPasswordFields(Table table)
- {
- var userDetails = table.CreateSet<UserDetails>();
- foreach(UserDetails detail in userDetails)
- {
- Console.WriteLine("------------------------------");
- Console.WriteLine("Username: " + detail.userName);
- Console.WriteLine("Password: " + detail.passWord);
- }
- Console.WriteLine("------------------------------");
- }
- [Then(@"all syntactically correct entries PASS validation")]
- public void ThenAllSyntacticallyCorrectEntriesPASSValidation()
- {
- Console.WriteLine("Correct entries pass validation");
- }
- [Then(@"all syntactically incorrect entries FAIL validation")]
- public void ThenAllSyntacticallyIncorrectEntriesFAILValidation()
- {
- Console.WriteLine("Invladi entries fail validation as expected");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement