Ejemplo n.º 1
0
        private RoutingStatus CalculateRoutingStatus(Itinerary itinerary, RouteSpecification routeSpecification)
        {
            if (itinerary == null)
            {
                return(RoutingStatus.NOT_ROUTED);
            }

            if (routeSpecification.IsSatisfiedBy(itinerary))
            {
                return(RoutingStatus.ROUTED);
            }

            return(RoutingStatus.MISROUTED);
        }