private static ShoppingList CreateDefault() { ISupermarketSectionService supermarketSectionService = new SupermarketSectionService(); int id = 1; var result = new ShoppingList { new ShoppingListItem(id++) { Description = "Large Eggs", Quantity = "6", Notes = "Free range please!", Section = supermarketSectionService.Select("Dairy") }.WithImage("eggs.jpg"), new ShoppingListItem(id++) { Description = "Pints of Milk", Quantity = "4", Section = supermarketSectionService.Select("Dairy") }.WithImage("milk.jpg"), new ShoppingListItem(id++) { Description = "Bag of Apples", Section = supermarketSectionService.Select("Fruit N Veg"), Quantity = "1" }, new ShoppingListItem(id) { Description = "Boxes of Wine", Section = supermarketSectionService.Select("Booze"), Quantity = "4" } }; return result; }
private static ShoppingList CreateDefault() { ISupermarketSectionService supermarketSectionService = new SupermarketSectionService(); int id = 1; var result = new ShoppingList { new ShoppingListItem(id++) { Description = "Large Eggs", Quantity = "6", Notes = "Free range please!", Section = supermarketSectionService.Select("Dairy") }.WithImage("eggs.jpg"), new ShoppingListItem(id++) { Description = "Pints of Milk", Quantity = "4", Section = supermarketSectionService.Select("Dairy") }.WithImage("milk.jpg"), new ShoppingListItem(id++) { Description = "Bag of Apples", Section = supermarketSectionService.Select("Fruit N Veg"), Quantity = "1" }, new ShoppingListItem(id) { Description = "Boxes of Wine", Section = supermarketSectionService.Select("Booze"), Quantity = "4" } }; return(result); }