public static void ProcessPredefinedList(int listID) { int[] ids = new int[] { }; switch (listID) { case 1: ids = new int[] { 1, 2, 3 }; blo.CheckOut(GetPredefinedCart(ids)); break; case 2: ids = new int[] { 4, 7 }; blo.CheckOut(GetPredefinedCart(ids)); break; case 3: ids = new int[] { 8, 6, 9, 5 }; blo.CheckOut(GetPredefinedCart(ids)); break; default: break; } }
public void CheckOut() { // ---- Functional Test var allArticles = dao.GetAllItems(); IShoppingCartItem item = FactoryTest.CreateShoppingCartItem(); item.SelectedItem = allArticles[0]; item.Amount = 4; IShoppingCartItem item2 = FactoryTest.CreateShoppingCartItem(); item2.SelectedItem = allArticles[1]; item2.Amount = 3; cart.CartItems.Add(item); cart.CartItems.Add(item2); blo.CheckOut(cart); }