Exemple #1
0
        public IEnumerable <PackageInfo> GetPackages()
        {
            var    scriptData         = "{}";
            string responseFormServer = _applicationClient.ExecutePostRequest(_packagesListServiceUrl, scriptData);
            var    json     = _jsonConverter.CorrectJson(responseFormServer);
            var    packages = _jsonConverter.DeserializeObject <List <Dictionary <string, string> > >(json);

            return(packages.Select(CreatePackageInfo));
        }