Exemplo n.º 1
0
        public static void articlesApiTest(String username, String password, String auth)
        {
            System.Diagnostics.Debug.WriteLine("\n\nSTART OF vestorly.model.ArticlesApi TEST\n\n");
            vestorly.api.ArticlesApi articlesApi = new vestorly.api.ArticlesApi();

            // GET
            vestorly.model.Articles myArticles = articlesApi.FindArticles(auth, null, null, null, null);
            System.Diagnostics.Debug.WriteLine("GET: " + myArticles.articles);

            System.Diagnostics.Debug.WriteLine(myArticles.articles.Count);
            // GET{ID}
            foreach (vestorly.model.Article article in myArticles.articles)
            {
                vestorly.model.Article myArticle = articlesApi.FindArticleByID(auth, article.id).article;
                System.Diagnostics.Debug.WriteLine("GET{ID}: " + myArticle.ToString());
            }

            System.Diagnostics.Debug.WriteLine("\n\nEND OF ArticlesApi TEST\n\n");
        }
Exemplo n.º 2
0
        public static void articlesApiTest(String username, String password, String auth)
        {
            System.Diagnostics.Debug.WriteLine("\n\nSTART OF vestorly.model.ArticlesApi TEST\n\n");
            vestorly.api.ArticlesApi articlesApi = new vestorly.api.ArticlesApi();

            // GET
            vestorly.model.Articles myArticles = articlesApi.FindArticles(auth, null, null, null, null);
            System.Diagnostics.Debug.WriteLine("GET: " + myArticles.articles);

            System.Diagnostics.Debug.WriteLine(myArticles.articles.Count);
            // GET{ID}
            foreach (vestorly.model.Article article in myArticles.articles)
            {
                vestorly.model.Article myArticle = articlesApi.FindArticleByID(auth, article.id).article;
                System.Diagnostics.Debug.WriteLine("GET{ID}: " + myArticle.ToString());
            }

            System.Diagnostics.Debug.WriteLine("\n\nEND OF ArticlesApi TEST\n\n");
        }