public void GivenTheFollowingNewCustomerOrders(Table table) { var orders = new List <ClientEntities.Order>(); foreach (var row in table.Rows) { string custId = row["CustomerId"]; int[] productIds = TestsHelper.CreateTestProducts(); ScenarioContext.Current.Add("ProductIds", productIds); var clientOrder = EntityExtensions.CreateNewOrder(custId, productIds); orders.Add(clientOrder); } ScenarioContext.Current.Add("NewCustOrders", orders); }