Example #1
0
 private Leg ToLeg(Voyage voyage, TransitEdge first, TransitEdge last)
 {
    return new Leg(voyage, _locatinRepository.Find(new UnLocode(first.From)), 
       first.FromDate,
       _locatinRepository.Find(new UnLocode(last.To)),
       last.ToDate);
 }
Example #2
0
 private Leg ToLeg(TransitEdge edge)
 {
    return new Leg(
       _locatinRepository.Find(new UnLocode(edge.From)), 
       edge.FromDate,
       _locatinRepository.Find(new UnLocode(edge.To)),
       edge.ToDate);
 }
Example #3
0
 private static LegDTO ToLeg(TransitEdge edge)
 {
    return new LegDTO
              {
                 LoadDate = edge.FromDate,
                 LoadLocation = edge.From,
                 UnloadDate = edge.ToDate,
                 UnloadLocation = edge.To
              };            
 }