public OfferAssignmentService( IMemberRepository memberRepository, IOfferTypeRepository offerTypeRepository, IOfferValueCalculator offerValueCalculator, IOfferRepository offerRepository ) { _memberRepository = memberRepository; _offerTypeRepository = offerTypeRepository; _offerValueCalculator = offerValueCalculator; _offerRepository = offerRepository; }
public OfferService( IOfferRepository offerRepository, IOfferTypeRepository offerTypeRepository) { if (offerRepository == null) { throw new ArgumentNullException("offerRepository"); } if (offerTypeRepository == null) { throw new ArgumentNullException("offerTypeRepository"); } this.offerRepository = offerRepository; this.offerTypeRepository = offerTypeRepository; }
protected void Page_Load(object sender, EventArgs e) { offerService = CompositionRootHelper.GetCompositionRoot(Context).OfferService; offerTypeRepository = CompositionRootHelper.GetCompositionRoot(Context).OfferTypeRepository; if (!IsPostBack) { if (SaveOfferType(Request.Params["offerType"])) { rptOffersList.DataSource = offerService.GetOffers(OfferType); } else { rptOffersList.DataSource = offerService.GetOffers(); } } }
public OfferTypeService(IOfferTypeRepository OfferTypeRepository, IUnitOfWork unitOfWork) { this._OfferTypeRepository = OfferTypeRepository; this._unitOfWork = unitOfWork; }
public OfferTypeService(IOfferTypeRepository repository) : base(repository) { }