Esempio n. 1
0
 public OfferType(string name, ExpirationType expirationType, int daysValid, DateTime?beginDate)
 {
     Name           = name;
     ExpirationType = expirationType;
     DaysValid      = daysValid;
     BeginDate      = beginDate;
 }
Esempio n. 2
0
        public DateTime CalculateExpiration()
        {
            var dateExpiring = ExpirationType.CalculateExpiration(this);

            return(dateExpiring);
        }