public void getfrom_json()
        {
            var fileService = ObjectFactory.GetInstance<IFileService>();
            var service = new AppStoreServiceFake(fileService);

            //var list = service.LoadGameRecommendFromJsonConfig();
            var list = new List<AppView>();

            Assert.NotEmpty(list);
        }
        public void AppList()
        {
            var mobileParam = new MobileParam(MockRequstheader.Object);
            var namevalues = new NameValueCollection();
            namevalues[MobileParam.Key_Batch] = "mtk_6252a_11b";
            namevalues[MobileParam.Key_CInfo] = "1-yl1001-24m";
            namevalues[MobileParam.Key_Resolution] = "240x320";
            MockRequstheader.Setup<NameValueCollection>(s => s.Header).Returns(namevalues);

            var service = new AppStoreServiceFake(null);

            string slver = string.Empty;
            int totalCount = 0;
            var list = service.AppList(mobileParam, (int)SectionViewType.Game_Recommend, 0, 0, 10, "", out slver, out totalCount);

            Assert.Equal(2, list.Count);
        }
        public void UpdateList()
        {
            var mobileParam = new MobileParam(MockRequstheader.Object);
            var namevalues = new NameValueCollection();
            namevalues[MobileParam.Key_Batch] = "mtk_6252a_11b";
            namevalues[MobileParam.Key_CInfo] = "1-yl1001-24m";
            namevalues[MobileParam.Key_Resolution] = "240x320";
            MockRequstheader.Setup<NameValueCollection>(s => s.Header).Returns(namevalues);

            var service = new AppStoreServiceFake(null);

            var detail = service.UpdateList("21001~10000", mobileParam);
        }
        public void IsShortcutMobileRequest()
        {
            var mobileParam = new MobileParam(MockRequstheader.Object);
            var namevalues = new NameValueCollection();
            namevalues[MobileParam.Key_Batch] = "mtk_6252a_11b";
            namevalues[MobileParam.Key_CInfo] = "1-yl1001-24m";

            MockRequstheader.Setup<NameValueCollection>(s => s.Header).Returns(namevalues);

            var service = new AppStoreServiceFake(null);
            Assert.True(service.IsShortcutMobileRequest(mobileParam));
        }