Beispiel #1
0
        private IEnumerable <App> GetSiteApplications(string subString, string siteName)
        {
            var site = _siteFacade.GetSite(siteName);

            site.ThrowIfNull(siteName);
            var applications = _applicationFacade.GetSiteApplications(subString, site);

            return(applications);
        }
Beispiel #2
0
        public IEnumerable <BuildGetDto> Handle(GetSiteBuilds query)
        {
            var site = _siteFacade.GetSite(query.SiteName);

            site.ThrowIfNull(query.SiteName);
            var applications = _applicationFacade.GetSiteApplications(site);
            var builds       = _buildFactory.ConstructFrom(applications).OrderBy(x => x.Name);
            var buildsDto    = _mapper.Map <IEnumerable <BuildGetDto> >(builds);

            return(buildsDto);
        }
Beispiel #3
0
        public IEnumerable <ApplicationGetDto> Handle(GetSiteApplications query)
        {
            query.ThrowIfNull(GetType().Name);
            var site = _siteFacade.GetSite(query.SiteName);

            site.ThrowIfNull(query.SiteName);
            var applications    = _applicationFacade.GetSiteApplications(site);
            var applicationsDto = applications.Select(_mapper.Map <ApplicationGetDto>);

            return(applicationsDto.OrderBy(x => x.Name));
        }