Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ViewModel Not Failing Validation in Specflow Test
- Scenario: Creating a User without enough information
- Given I am logged on as an 'Admin'
- When I create the following Users:
- | Username | Password |
- | username | |
- Then I should not see any Users
- [When(@"I create the following Users:")]
- public void WhenICreateTheFollowingUsers(Table table)
- {
- foreach (var row in table.RowHelper())
- {
- var userFormViewModel = new UserFormViewModel
- {
- UserName = row["Username"],
- Password = row["Password"]
- };
- UserController.Create(userFormViewModel);
- }
- }
Add Comment
Please, Sign In to add comment