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

            return(dateExpiring);
        }