public void TestGetProducts()
        {
            ProductApp.Utils.ApiIntegration api = new ProductApp.Utils.ApiIntegration();

            JObject products = api.GetProducts("1");

            Assert.IsNotNull(products);
            Assert.IsInstanceOfType(products, typeof(JObject));

            products = api.GetProducts("1", "ab");
            Assert.IsNotNull(products);
            Assert.IsInstanceOfType(products, typeof(JObject));
        }
        public void TestCastProducts()
        {
            ProductApp.Utils.ApiIntegration api = new ProductApp.Utils.ApiIntegration();

            JObject products = api.GetProducts("1");
            List <ProductsModel> productsList = api.CastProducts(products);

            Assert.IsNotNull(productsList);
            Assert.IsInstanceOfType(productsList, typeof(List <ProductsModel>));
        }
        public void TestGetProductPagesCount()
        {
            ProductApp.Utils.ApiIntegration api = new ProductApp.Utils.ApiIntegration();

            JObject products      = api.GetProducts("1");
            string  productsCount = api.GetProductPagesCount(products);

            Assert.IsNotNull(productsCount);
            Assert.IsInstanceOfType(productsCount, typeof(string));
        }