Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        public BanditBandsList(IBanditRepository banditRepository)
        {
            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            this.banditRepository = banditRepository;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 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;
        }