コード例 #1
0
        public InviteJoinBand(IInvitationRepository invitationRepository, IBandRepository bandRepository, IBanditRepository banditRepository, Notifications notifications)
        {
            if (invitationRepository == null)
            {
                throw new ArgumentNullException(nameof(invitationRepository));
            }

            if (bandRepository == null)
            {
                throw new ArgumentNullException(nameof(bandRepository));
            }

            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            if (notifications == null)
            {
                throw new ArgumentNullException(nameof(notifications));
            }

            this.notifications        = notifications;
            this.bandRepository       = bandRepository;
            this.banditRepository     = banditRepository;
            this.invitationRepository = invitationRepository;
        }
コード例 #2
0
ファイル: BanditBandsList.cs プロジェクト: shohnn/SheriffAPI
        public BanditBandsList(IBanditRepository banditRepository)
        {
            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            this.banditRepository = banditRepository;
        }
コード例 #3
0
ファイル: JoinApp.cs プロジェクト: shohnn/SheriffAPI
        public JoinApp(Notifications notifications, IBanditRepository banditRepository)
        {
            if (notifications == null)
            {
                throw new ArgumentNullException(nameof(notifications));
            }

            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            this.notifications    = notifications;
            this.banditRepository = banditRepository;
        }
コード例 #4
0
        public CreateBand(IBandRepository bandRepository, IBanditRepository banditRepository)
        {
            if (bandRepository == null)
            {
                throw new ArgumentNullException(nameof(bandRepository));
            }

            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            this.bandRepository   = bandRepository;
            this.banditRepository = banditRepository;
        }