public void GetImages() { //ARRANGE //ACT var actual = apiWrapper.GetImages("xml", "10", "hats"); //ASSERT Assert.IsTrue(!string.IsNullOrWhiteSpace(actual)); }
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); }