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