private OrderSubscriptionItem GetSecondOrderSubscriptionItem(int weekId) { var selectedDish = new FakeCooker1Dishes().MostPopularDish2(); var secondSubscriptionOrderItemDetail = new OrderSubscriptionItem { OrderSubscriptionItemId = 2, DishId = selectedDish.DishId, CookerId = selectedDish.CookerId, MenuId = selectedDish.MenuId, Quantity = 1, Description = selectedDish.Description, Instructions = "Put Extra Spices", OrderSubscriptionId = GetFakeOrderSubscriptionId(), ClientOrderReviewSentClientOrderReviewSentId = new SubscriptionHelper().CreateOrderReview(selectedDish, GetFakeOrderSubscriptionId()).ClientOrderToReviewId, WeekId = weekId, ScheduledDate = DateTime.Today.Date.AddDays(2), OrderStatusId = (int)OrderStatus.Values.Scheduled }; //Required Side var secondOrderDetailOption = new OrderSubscriptionItemDishOption { OrderSubscriptionItemDishOptionId = 3, DishOptionChoiceId = 14, DishOptionChoiceValue = "New York Strip Steak", DishOptionId = (int)DishOptionType.Values.FakeRequiredSideThreeOptionChoices, Instructions = "no Mayone Please", OrderSubscriptionItemId = 2 }; secondSubscriptionOrderItemDetail.OrderSubscriptionItemDishOptions.Add(secondOrderDetailOption); return secondSubscriptionOrderItemDetail; }
private OrderSubscriptionItem GetFirstOrderSubscriptionItem(int weekId) { var selectedDish = new FakeCooker1Dishes().MostPopularDish1(); var firstSubscriptionOrderItemDetail = new OrderSubscriptionItem { OrderSubscriptionItemId = 1, DishId = selectedDish.DishId, CookerId = selectedDish.CookerId, MenuId = selectedDish.MenuId, Quantity = 1, Description = selectedDish.Description, Instructions = "Put Extra French Fries", OrderSubscriptionId = GetFakeOrderSubscriptionId(), ClientOrderReviewSentClientOrderReviewSentId = new SubscriptionHelper().CreateOrderReview(selectedDish, GetFakeOrderSubscriptionId()).ClientOrderToReviewId, WeekId = weekId, ScheduledDate = DateTime.Today.Date, OrderStatusId = (int)OrderStatus.Values.Scheduled }; //Required Side var firstOrderDetailOption = new OrderSubscriptionItemDishOption { OrderSubscriptionItemDishOptionId = 1, DishOptionChoiceId = 3, DishOptionChoiceValue = "Cucumber Salad", DishOptionId = (int)DishOptionType.Values.FakeRequiredSideTwelveOptionChoices, Instructions = "no Mayone Please", OrderSubscriptionItemId = 1 }; //Optional Side var secondOrderDetailOption = new OrderSubscriptionItemDishOption { OrderSubscriptionItemDishOptionId = 2, DishOptionChoiceId = 17, DishOptionChoiceValue = "House Salad", DishOptionId = (int)DishOptionType.Values.FakeOptionalSideThreeOptionChoices, Instructions = "More Lettuce", OrderSubscriptionItemId = 1 }; firstSubscriptionOrderItemDetail.OrderSubscriptionItemDishOptions.Add(firstOrderDetailOption); firstSubscriptionOrderItemDetail.OrderSubscriptionItemDishOptions.Add(secondOrderDetailOption); return firstSubscriptionOrderItemDetail; }