Example #1
0
 public SaveChangesHandler(
     IViewModelCommand <TViewModelParameter> decorated,
     IViewModelQuery <CanSaveFile> canSaveFile,
     IViewModelCommand <SaveFile> saveFile)
 {
     this.decorated   = decorated;
     this.canSaveFile = canSaveFile;
     this.saveFile    = saveFile;
 }
        public HomeController(IConferenceLoader conferenceLoader, IViewModelQuery<IEnumerable<SponsorModel>> sponsorsQuery)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            this.conferenceLoader = conferenceLoader;
            this.sponsorsQuery = sponsorsQuery;
        }
Example #3
0
        public SponsorController(IViewModelQuery <IEnumerable <SponsorModel> > sponsorsQuery, ISponsorLogoService sponsorLogoService)
        {
            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (sponsorLogoService == null)
            {
                throw new ArgumentNullException("sponsorLogoService");
            }

            this.sponsorsQuery      = sponsorsQuery;
            this.sponsorLogoService = sponsorLogoService;
        }
        public SponsorController(IViewModelQuery<IEnumerable<SponsorModel>> sponsorsQuery, ISponsorLogoService sponsorLogoService)
        {
            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (sponsorLogoService == null)
            {
                throw new ArgumentNullException("sponsorLogoService");
            }

            this.sponsorsQuery = sponsorsQuery;
            this.sponsorLogoService = sponsorLogoService;
        }
Example #5
0
        public HomeController(IConferenceLoader conferenceLoader, IViewModelQuery <IEnumerable <SponsorModel> > sponsorsQuery, AgendaSessionsLoader agendaSessionsLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (agendaSessionsLoader == null)
            {
                throw new ArgumentNullException("agendaSessionsLoader");
            }

            this.conferenceLoader     = conferenceLoader;
            this.sponsorsQuery        = sponsorsQuery;
            this.agendaSessionsLoader = agendaSessionsLoader;
        }
Example #6
0
            private DependencyResolver RegisterViewModelQueries()
            {
                this.canSaveFileHandler = new CanSaveFileHandler();

                return(this);
            }
Example #7
0
 public Handler(IViewModelQuery <Empty, IEnumerable <Result> > query)
 {
     _query = query;
 }