示例#1
0
        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;
        }
示例#2
0
 public NewCargo(TrackingId identifier, IRouteSpecification routeSpecification)
     : base(identifier, routeSpecification)
 {
 }
示例#3
0
 public Cargo(TrackingId identifier, IRouteSpecification routeSpecification)
     : this(new NewCargo(identifier, routeSpecification))
 {
 }