示例#1
0
 public Location(LatLongCoordinate point, string name)
 {
     this.point = point ?? throw new ArgumentNullException(nameof(point));
     this.name  = name ?? throw new ArgumentNullException(nameof(name));
 }
示例#2
0
 public Route(LatLongCoordinate startPoint, LatLongCoordinate endPoint, decimal driveTimeMinutes)
 {
     this.startPoint       = startPoint ?? throw new ArgumentNullException(nameof(startPoint));
     this.endPoint         = endPoint ?? throw new ArgumentNullException(nameof(endPoint));
     this.driveTimeMinutes = driveTimeMinutes > 0 ? driveTimeMinutes : 0;
 }
 public ScheduledRoute(LatLongCoordinate startPoint, LatLongCoordinate endPoint, decimal driveTimeMinutes,
                       DateTime depatureTime, TripType tripType) : base(startPoint, endPoint, driveTimeMinutes)
 {
     this.depatureTime = depatureTime;
     this.tripType     = tripType ?? throw new ArgumentNullException(nameof(tripType));
 }