public void GivenAStudentGrades(Table table) { var students = table.ToModelList<StudentGrade>(); Assert.IsNotNull(students); Assert.IsTrue(students.Count>0); Assert.IsTrue(students.Count(s=>s.Subject.EqualsIgnoreCase("Math"))>0); Assert.IsTrue(students.Count(s => s.Subject.EqualsIgnoreCase("Literature")) > 0); ScenarioContext.Current.Set(students); }
public void GivenProductStoreIsSetupWithFollowingRecords(Table table) { var products = table.ToModelList<Product>(); ScenarioContext.Current.Set(products); }