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; }
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; }
private double GetTollAmount(CarModel model) { if (model.VehicleType == 1) { return 4 + random.Next(3); } else { return 15 + random.Next(20); } }