Esempio n. 1
0
        public void GetImages()
        {
            //ARRANGE

            //ACT
            var actual = apiWrapper.GetImages("xml", "10", "hats");

            //ASSERT
            Assert.IsTrue(!string.IsNullOrWhiteSpace(actual));
        }
Esempio n. 2
0
        public IEnumerable <ImageModel> GetImages(string format, string resultsPerPage, string category)
        {
            var response = Api.GetImages(format, resultsPerPage, category);

            //todo: handle errors
            if (string.IsNullOrWhiteSpace(response))
            {
                return(null);
            }

            var images = ApiResponseParser.ParseImagesList(response);

            return(images);
        }