public TwoDaysPurchasedMovie(Customer customer, DateTime purchased) : base(customer, purchased) { priceBeforeDiscount = 4; ExpirationDate = Purchased.AddDays(2); }
public DateTime GetExpirationDate() { switch (LicensingModel) { case LicensingModel.TwoDays: return Purchased.AddDays(2); case LicensingModel.LifeLong: return DateTime.MaxValue; default: throw new ArgumentOutOfRangeException(); } }