public void ReturnInstanceOfTypeList_When_Executed()
        {
            //Act
            var foundPosts = postServices.SearchPostsTo("1", 21);

            //Assert
            Assert.IsInstanceOfType(foundPosts, typeof(List <PostModel>));
        }
Example #2
0
        public string Execute(IList <string> parameters)
        {
            var searchedText    = parameters[1];
            var searchedPriceTo = int.Parse(parameters[2]);
            var posts           = postService.SearchPostsTo(searchedText, searchedPriceTo);

            return(postService.PrintPostsToConsole(posts));
        }