コード例 #1
0
 public void init()
 {
     WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB();
     cDB.emptyDB();
     configuration.DB_MODE = testing;
     couponDB = new couponDB(testing);
     li       = new LinkedList <Coupon>();
     couponDB.Add(new Coupon("hey", 1, 50, "02/02/2020"));
 }
コード例 #2
0
 private CouponsManager()
 {
     CDB                      = new couponDB(configuration.DB_MODE);
     coupons                  = CDB.Get();
     couponCollector          = new System.Timers.Timer();
     couponCollector.Elapsed += new ElapsedEventHandler(CheckFinishedcoupon);
     couponCollector.Interval = 60 * 60 * 1000; // interval of one hour
     couponCollector.Enabled  = true;
 }