Пример #1
0
 private void sendSlipToWarehouse(IEnumerable <PaymentTags> tags, IPackingSlipBuilder packingSlip)
 {
     if (tags.Contains(PaymentTags.PhysicalProduct))
     {
         packingSlip.SendPackingSlipTo(Departments.Warehouse);
     }
 }
Пример #2
0
 private void addFirstAidVideo(IEnumerable <PaymentTags> tags, IPackingSlipBuilder packingSlip)
 {
     if (tags.Contains(PaymentTags.AddFirstAidVideo))
     {
         packingSlip.AddItemToOrder(productCatalog.GetProductId(FirstAidVideo));
     }
 }
Пример #3
0
 private void sendSlipToRoyalty(IEnumerable <PaymentTags> tags, IPackingSlipBuilder packingSlip)
 {
     if (tags.Contains(PaymentTags.Book))
     {
         packingSlip.SendPackingSlipTo(Departments.Royalty);
     }
 }