private static IEnumerable <PriceReductionEntity> GetPriceReductionEntities() { var priceReductions = new List <PriceReductionEntity>(); var pR = new PriceReductionEntity() { DayOfWeek = 0, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 1, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 2, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 3, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 4, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 5, Reduction = 0.2 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 6, Reduction = 0.5 }; priceReductions.Add(pR); return(priceReductions); }
/// <summary> /// Initialy used for mocking, not required anymore /// </summary> /// <returns></returns> private IList <PriceReductionEntity> InitializePriceReductionList() { var priceReductions = new List <PriceReductionEntity>(); var pR = new PriceReductionEntity() { DayOfWeek = 0, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 1, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 2, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 3, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 4, Reduction = 0 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 5, Reduction = 0.2 }; priceReductions.Add(pR); pR = new PriceReductionEntity() { DayOfWeek = 6, Reduction = 0.5 }; priceReductions.Add(pR); return(priceReductions); }