public void ThenTheDeliveryAddressViewModelShouldHaveFollowingErrors(Table table)
 {
     var actual = ScenarioContext.Current.Get<DeliveryAddressViewModel>("actualInstance");
     Assert.That(actual, Is.Not.Null);
     Assert.That(actual.BrokenRules, Is.Not.Null);
     table.ReplaceErrorCodeWithMessage().CompareToSet(actual.BrokenRules);
 }
Example #2
0
 public void ThenTheSigninViewModelShouldHaveFollowingErrors(Table table)
 {
     var result = ScenarioContext.Current.Get<ViewResult>("controllerResponse");
     Assert.That(result, Is.Not.Null);
     var mainViewModel = result.Model as MainViewModel;
     Assert.That(mainViewModel, Is.Not.Null);
     if (mainViewModel != null)
     {
         var actual = mainViewModel.SignInViewModel;
         Assert.That(actual, Is.Not.Null);
         Debug.Assert(actual != null, "actual != null");
         Assert.That(actual.BrokenRules, Is.Not.Null);
         table.ReplaceErrorCodeWithMessage().CompareToSet(actual.BrokenRules);
     }
 }