public AppStoresWapUIControllerTest()
        {
            appStoreUIService = new Mock<IAppStoreUIService>();
            redisService = new Mock<IRedisService>();
            appStoreService = new Mock<IAppStoreService>();
            ssesionRepository = new Mock<ISessionRepository>();
            cookieService = new Mock<ICookieService>();
            fullTextSearchService = new Mock<IFullTextSearchService>();

            appSotresWapUISerivces = new AppStoresWapUISerivces(appStoreUIService.Object, redisService.Object, appStoreService.Object, ssesionRepository.Object, cookieService.Object, fullTextSearchService.Object);
            iappSotresWapUISerivces = new AppStoresWapUISerivces(appStoreUIService.Object, redisService.Object, appStoreService.Object, ssesionRepository.Object, cookieService.Object, fullTextSearchService.Object);

            Controller = new AppStoresWapUIController(iappSotresWapUISerivces, ssesionRepository.Object, cookieService.Object, appStoreService.Object);
            this.Controller.RequestRepository = this.RequetHeaderRepositoryService;
            this.Controller.ControllerContext = new ControllerContext(this.RequestContext, this.Controller);
        }
        public AppStoresWapUIServiceTest()
        {
            _redisServiceMock = new Mock<IRedisService>();
            redisService = _redisServiceMock.Object;

            _redisServiceMock2 = new Mock<IRedisService2>();
            redisService2 = _redisServiceMock2.Object;

            _redisClientMock = new Mock<IRedisClient>();
            redisClient = _redisClientMock.Object;

            _appStoreUIServiceMock = new Mock<IAppStoreUIService>();
            appStoreUIService = _appStoreUIServiceMock.Object;

            _logServiceMock = new Mock<ILogger>();
            logService = _logServiceMock.Object;

            _fileServiceMock = new Mock<IFileService>();
            fileService = _fileServiceMock.Object;

            _fullTextSearchServiceMock = new Mock<IFullTextSearchService>();
            fullTextSearchService = _fullTextSearchServiceMock.Object;

            _requestRepoMock = new Mock<IRequestRepository>();
            requestRepo = _requestRepoMock.Object;

            appStoreUIRealService = new AppStoreUIService(fs, redisReal);

            sesionRepository = new Mock<ISessionRepository>();
            sesionRepositoryReal = new SessionRepository();

            cookieServiceReal =new CookieService();
            cookieService = new Mock<ICookieService>();

            appStoreServiceReal = new AppStoreService(fs, redisReal, appStoreUIRealService, new FullTextSearchService(redisReal),new IMEICacheService(redisReal));
            appStoreServiceReal.RedisService2 = new RedisService2();
            appStoreService = new AppStoreService(fs, redisService, appStoreUIRealService, new FullTextSearchService(redisService), new IMEICacheService(redisReal));
            appStoreService.RedisService2 = redisService2;

            appStoresWapUIServiceReal = new AppStoresWapUISerivces(appStoreUIRealService, redisReal, appStoreServiceReal, sesionRepositoryReal, cookieServiceReal, new FullTextSearchService(redisReal));
            appStoresWapUIServiceReal.RedisService2 = new RedisService2();
            appStoresWapUIService = new AppStoresWapUISerivces(appStoreUIService, redisService, appStoreService, sesionRepository.Object, cookieService.Object, fullTextSearchService);

            appStoresWapUIService.RedisService2 = redisService2;
            Bootstrapper.Start();
            redisReal.FlushAll();
        }
        public AppStoresWapServiceTestBase()
        {
            appStoreUIService = new Mock<IAppStoreUIService>();
            redisService = new Mock<IRedisService>();
            redisService2 = new Mock<IRedisService2>();
            fullTextSearchService = new Mock<IFullTextSearchService>();
            appStoreService = new Mock<IAppStoreService>();
            ssesionRepository = new Mock<ISessionRepository>();
            cookieService = new Mock<ICookieService>();

            appSotresWapUISerivces = new AppStoresWapUISerivces(appStoreUIService.Object, redisService.Object, appStoreService.Object, ssesionRepository.Object, cookieService.Object, fullTextSearchService.Object);
            appSotresWapUISerivces.RedisService2 = redisService2.Object;
            iappSotresWapUISerivces = new AppStoresWapUISerivces(appStoreUIService.Object, redisService.Object, appStoreService.Object, ssesionRepository.Object, cookieService.Object, fullTextSearchService.Object);
        }