コード例 #1
0
 public OfferAssignmentService(
     IMemberRepository memberRepository,
     IOfferTypeRepository offerTypeRepository,
     IOfferValueCalculator offerValueCalculator,
     IOfferRepository offerRepository
     )
 {
     _memberRepository     = memberRepository;
     _offerTypeRepository  = offerTypeRepository;
     _offerValueCalculator = offerValueCalculator;
     _offerRepository      = offerRepository;
 }
コード例 #2
0
 public OfferAssignmentService(
     IMemberRepository memberRepository,
     IOfferTypeRepository offerTypeRepository,
     IOfferValueCalculator offerValueCalculator,
     IOfferRepository offerRepository
     )
 {
     _memberRepository = memberRepository;
     _offerTypeRepository = offerTypeRepository;
     _offerValueCalculator = offerValueCalculator;
     _offerRepository = offerRepository;
 }
コード例 #3
0
ファイル: OfferService.cs プロジェクト: myroman/FeelOfTravel
 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;
 }
コード例 #4
0
 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();
         }
     }
 }
コード例 #5
0
 public OfferTypeService(IOfferTypeRepository OfferTypeRepository, IUnitOfWork unitOfWork)
 {
     this._OfferTypeRepository = OfferTypeRepository;
     this._unitOfWork = unitOfWork;
 }
コード例 #6
0
 public OfferTypeService(IOfferTypeRepository repository) : base(repository)
 {
 }