Exemplo n.º 1
0
 public Commission FinishDraftCommission(Commission commission, ParcelLocker sourceParcelLocker)
 {
     DraftCommisions.Remove(commission);
     commission.SourceParcelLocker = sourceParcelLocker;
     Commissions.Add(commission);
     return(commission);
 }
Exemplo n.º 2
0
        public Commission CreateDraftCommission(Recipient recipient, ParcelLocker targetParcelLocker, decimal price)
        {
            Commission commission = new Commission {
                Recipient = recipient, TargetParceLocker = targetParcelLocker, Price = price
            };

            DraftCommisions.Add(commission);
            return(commission);
        }
Exemplo n.º 3
0
 public void LeaveParcelIn(ParcelLocker parcelLocker, Parcel parcel)
 {
     AssignedParcels.Remove(parcel);
     ParcelsInPossession.Remove(parcel);
 }