protected CargoState(TrackingId identifier, IRouteSpecification routeSpecification) { if (null == identifier) { throw new ArgumentNullException("identifier"); } if (null == routeSpecification) { throw new ArgumentNullException("routeSpecification"); } _calculationDate = DateTime.UtcNow; this.Identifier = identifier; this.RouteSpecification = routeSpecification; _routingStatus = RoutingStatus.NotRouted; _estimatedTimeOfArrival = null; }
public NewCargo(TrackingId identifier, IRouteSpecification routeSpecification) : base(identifier, routeSpecification) { }
public Cargo(TrackingId identifier, IRouteSpecification routeSpecification) : this(new NewCargo(identifier, routeSpecification)) { }