예제 #1
0
        public virtual bool Init(string voucherID, DateTime publishDate, DateTime expireDate, DiscountRate discount)
        {
            VoucherID   = voucherID;
            PublishDate = publishDate;
            ExpireDate  = expireDate;
            Discount    = discount;

            return(true);
        }
예제 #2
0
 public Voucher(string voucherID, DateTime publishDate, DateTime expireDate, DiscountRate discount)
 {
     Init(voucherID, publishDate, expireDate, discount);
 }