Beispiel #1
0
 public EntryEvent(int tollId, DateTime entryTime, string licence, string state, CarModel carModel, double tollAmount, int tag)
 {
     this.TollId = tollId;
     this.EntryTime = entryTime;
     this.LicensePlate = licence;
     this.State = state;
     this.CarModel = carModel;
     this.TollAmount = tollAmount;
     this.Tag = tag;
 }
Beispiel #2
0
 public EntryEvent(int tollId, DateTime entryTime, string licence, string state, CarModel carModel, double tollAmount, int tag)
 {
     this.TollId       = tollId;
     this.EntryTime    = entryTime;
     this.LicensePlate = licence;
     this.State        = state;
     this.CarModel     = carModel;
     this.TollAmount   = tollAmount;
     this.Tag          = tag;
 }
Beispiel #3
0
 private double GetTollAmount(CarModel model)
 {
     if (model.VehicleType == 1)
     {
         return 4 + random.Next(3);
     }
     else
     {
         return 15 + random.Next(20);
     }
 }