public void SeedPromotions() { promotionList = new List <Promotion> { new Promotion { ID = 1, PromotionType = "Multi", DiscountPercentage = 0, SKUList = new List <SKU>() { new SKU { ID = 'A', Quantity = 3, Price = _skuRepository.GetSKUByID('A').Price } }, DiscountPrice = 130, IsActive = true }, new Promotion { ID = 1, PromotionType = "Multi", DiscountPercentage = 0, SKUList = new List <SKU>() { new SKU { ID = 'B', Quantity = 2, Price = _skuRepository.GetSKUByID('B').Price } }, DiscountPrice = 45, IsActive = true }, new Promotion { ID = 1, PromotionType = "Combo", DiscountPercentage = 0, SKUList = new List <SKU>() { new SKU { ID = 'C', Quantity = 1, Price = _skuRepository.GetSKUByID('C').Price }, new SKU { ID = 'D', Quantity = 1, Price = _skuRepository.GetSKUByID('D').Price } }, DiscountPrice = 30, IsActive = true } }; }
public SKU GetSKUByID(char SkuID) { return(_skuRepository.GetSKUByID(SkuID)); }