Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public NewCargo(TrackingId identifier, IRouteSpecification routeSpecification)
     : base(identifier, routeSpecification)
 {
 }
Exemplo n.º 3
0
 public Cargo(TrackingId identifier, IRouteSpecification routeSpecification)
     : this(new NewCargo(identifier, routeSpecification))
 {
 }