Esempio n. 1
0
 public bool has_the_same_value_as(IRouteSpecification the_other)
 {
     return the_other != null &&
            this.underlying_origin_location.has_the_same_identity_as(the_other.origin()) &&
            this.underlying_destination_location.has_the_same_identity_as(the_other.destination()) &&
            this.underlying_arrival_deadline.has_the_same_value_as(the_other.arrival_dealine());
 }
Esempio n. 2
0
 public Cargo(ITrackingId tracking_id, IRouteSpecification route_specification)
 {
     this.underlying_tracking_id = tracking_id;
     this.underlying_route_specification = route_specification;
     this.underlying_origin_location = route_specification.origin();
 }