コード例 #1
0
ファイル: OccasionFactory.cs プロジェクト: GlennPacker/meetup
 public OccasionFactory(IOccasionRepository occasionRepository, IVenueFactory venueFactory, IUserAccountRepository userAccountRepository, IMeetUpMemberService memberService)
 {
     _occasionRepository    = occasionRepository;
     _venueFactory          = venueFactory;
     _userAccountRepository = userAccountRepository;
     _memberService         = memberService;
 }
コード例 #2
0
ファイル: VenueService.cs プロジェクト: estoyan/SportSquare
        public VenueService(IGenericRepository <Venue> repository, IUnitOfWork unitOfWork, IVenueFactory venueFactory) : base(repository, unitOfWork)
        {
            if (venueFactory == null)
            {
                throw new ArgumentNullException("VenueFactory can't be null!");
            }

            this.venueFactory = venueFactory;
        }