コード例 #1
0
 public void ChangeDeliveryDetail(DeliveryDetailSnapshot snapshot)
 {
     _order.SetCurrentDeliveryDetails(
         snapshot.City,
         snapshot.StreetAddress,
         snapshot.ExpectedDeliveryDate,
         snapshot.DeliveryInstructions);
 }
コード例 #2
0
        private void InitializeDeliveryDetail(DeliveryDetailSnapshot snapshot)
        {
            DeliveryDetail deliveryDetail = _order.CurrentDeliveryDetails.FirstOrDefault();

            if (deliveryDetail != null)
            {
                snapshot.City = deliveryDetail.City.Name;
                snapshot.StreetAddress = deliveryDetail.StreetAddress;
                snapshot.ExpectedDeliveryDate = deliveryDetail.ExpectedDeliveryDate;
                snapshot.DeliveryInstructions = deliveryDetail.DeliveryInstructions;
            }
        }