Ejemplo n.º 1
0
 private decimal GetPricing(string pricingType, MoviePricingCategory pricingCategory)
 {
     return(decimal.Parse(_config[$"Pricing:{pricingType}:{pricingCategory}"]));
 }
Ejemplo n.º 2
0
        private TimeSpan GetCategoryLimit(MoviePricingCategory pricingCategory)
        {
            var years = double.Parse(_config[$"Pricing:CategoryLimits:{pricingCategory}"]);

            return(TimeSpan.FromDays(DaysInYear * years));
        }