コード例 #1
0
 private static TransitEdge ToEdge(Voyage voyage, CarrierMovement movement)
 {
    return new TransitEdge(voyage,
       movement.TransportLeg.DepartureLocation.UnLocode.CodeString,
       movement.TransportLeg.ArrivalLocation.UnLocode.CodeString,
       movement.DepartureTime,
       movement.ArrivalTime);
 }
コード例 #2
0
ファイル: Leg.cs プロジェクト: ssajous/DDDSample.Net
 private bool IsLastMovementOfLeg(CarrierMovement x)
 {
    return x.ArrivalTime == UnloadDate && x.TransportLeg.ArrivalLocation == UnloadLocation;
 }
コード例 #3
0
ファイル: Leg.cs プロジェクト: ssajous/DDDSample.Net
 private bool IsFirstMovementOfLeg(CarrierMovement x)
 {
    return x.DepartureTime == LoadDate && x.TransportLeg.DepartureLocation == LoadLocation;
 }