コード例 #1
0
 public static Shipment CreateNew(CheckPoint checkPoint)
 {
     return(new Shipment(
                Guid.NewGuid(),
                null,
                false,
                ShipmentStatus.Received,
                DateTime.UtcNow,
                checkPoint,
                DateTime.UtcNow,
                null));
 }
コード例 #2
0
 public Shipment(
     Guid shipmentId,
     Guid?packageId,
     bool isStoppedInCustom,
     ShipmentStatus status,
     DateTime receivedDate,
     CheckPoint checkPoint,
     DateTime createdAt,
     DateTime?updatedAt)
 {
     ShipmentId         = shipmentId;
     PackageId          = packageId;
     IsStoppedInCustoms = isStoppedInCustom;
     Status             = status;
     ReceivedDate       = receivedDate;
     CheckPoint         = checkPoint;
     CreatedAt          = createdAt;
     UpdatedAt          = updatedAt;
 }