public List <Proxy.Dto.EnvironmentInfo> GetEnvironmentInfos() { IEnumerable <EnvironmentInfo> environmentInfos = _environmentInfoRepository.GetAll(); return (environmentInfos .Where(x => x.IsVisibleToClients) .Select(DtoMapper.Map <EnvironmentInfo, Proxy.Dto.EnvironmentInfo>) .ToList()); }
public override int Run(string[] args) { IEnvironmentInfoRepository environmentInfoRepository = ObjectFactory.Instance.CreateEnvironmentInfoRepository(); List <EnvironmentInfo> environmentInfos = environmentInfoRepository.GetAll() .ToList(); foreach (EnvironmentInfo environmentInfo in environmentInfos) { OutputWriter.WriteLine("{0}", environmentInfo.Name); } return(0); }
public List <EnvironmentInfo> GetAllEnvironments() { return(_EnvironmentRepository.GetAll()); }