Exemplo n.º 1
0
 public CommonController(ICommonService commonSvc, IFullTextSearchService fullTextSearchService, IIMEICacheService imeiCacheService, ISqlLoaderWriter logService)
 {
     CommonService = commonSvc;
     FullTextSearchService = fullTextSearchService;
     IMEICacheService = imeiCacheService;
     LogService = logService;
 }
Exemplo n.º 2
0
 public AppStoreService(IFileService fileService, IRedisService redisService, IAppStoreUIService appStoreUIService, IFullTextSearchService fullTextSearchService, IIMEICacheService imeiCacheService)
     : base(redisService)
 {
     this.FileService = fileService;
     this.RedisService = redisService;
     this.AppStoreUIService = appStoreUIService;
     this.FullTextSearchService = fullTextSearchService;
     this.IMEICacheService = imeiCacheService;
 }
Exemplo n.º 3
0
        public AppStoresServiceTest()
        {
            _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;

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

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

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

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

            appStoreUIRealService = new AppStoreUIService(fs, redis);
            appStoreUIRealService.RedisService2 = redis2;
            appStoreRealService = new AppStoreService(fs, redis, appStoreUIRealService, fullTextSearchService, imeiCacheService);
            appStoreRealService.RedisService2 = redis2;

            appStoreMockService = new AppStoreService(_fileServiceMock.Object, _redisServiceMock.Object,
                _appStoreUIServiceMock.Object, _fullTextSearchServiceMock.Object,_imeiCacheServiceMock.Object);
            appStoreMockService.RedisService2 = redisService2;
            redis.FlushAll();

            EntityMapping.Config();
        }