Esempio n. 1
0
 public void SetBuildValues(BusinessPartner partner)
 {
     _buildFactory = _serviceResolver.GetBuildValueFactoryFor(partner);
     if (_buildFactory == null)
     {
         throw new ApplicationException("There was no build factory for partner " + partner.Code);
     }
 }
Esempio n. 2
0
 public Fedex850Creator(IControlNumberRepository repo, IBusinessPartnerSpecificServiceResolver serviceResolver)
 {
     _repo              = repo;
     _segmentFactory    = serviceResolver.GetSegmentFactoryFor(BusinessPartner.FedEx);
     _buildValueFactory = serviceResolver.GetBuildValueFactoryFor(BusinessPartner.FedEx);
 }