Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. [Given(@"I am on the web site home page")]
  2. public void GivenIAmOnTheWebSiteHomePage()
  3. {
  4. Console.WriteLine("You are on the Home Page");
  5. }
  6.  
  7. [When(@"I enter a Username and Password in the Username and Password fields")]
  8. public void WhenIEnterAAndInTheUsernameAndPasswordFields(Table table)
  9. {
  10. var userDetails = table.CreateSet<UserDetails>();
  11.  
  12. foreach(UserDetails detail in userDetails)
  13. {
  14. Console.WriteLine("------------------------------");
  15. Console.WriteLine("Username: " + detail.userName);
  16. Console.WriteLine("Password: " + detail.passWord);
  17. }
  18.  
  19. Console.WriteLine("------------------------------");
  20. }
  21.  
  22. [Then(@"all syntactically correct entries PASS validation")]
  23. public void ThenAllSyntacticallyCorrectEntriesPASSValidation()
  24. {
  25. Console.WriteLine("Correct entries pass validation");
  26. }
  27.  
  28. [Then(@"all syntactically incorrect entries FAIL validation")]
  29. public void ThenAllSyntacticallyIncorrectEntriesFAILValidation()
  30. {
  31. Console.WriteLine("Invladi entries fail validation as expected");
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement