public DataRepository(HttpContextBase httpContext, IRestRequestCreator restRequestCreator, IRestMethods restMethods, IProductService ProductService, ICacheManagerService CacheManagerService, ITokenService tokenService)
 {
     _httpContext         = httpContext;
     _restRequestCreator  = restRequestCreator;
     _restMethods         = restMethods;
     _productService      = ProductService;
     _cacheManagerService = CacheManagerService;
     _tokenService        = tokenService;
 }
Example #2
0
        public DataRepository_GetArtistList()
        {
            _restMethods         = A.Fake <IRestMethods>();
            _tokenService        = A.Fake <ITokenService>();
            _restRequestCreator  = A.Fake <IRestRequestCreator>();
            _dbContextFactory    = A.Fake <IDbContextFactory>();
            _productService      = A.Fake <IProductService>();
            _cacheManagerService = A.Fake <ICacheManagerService>();
            var mockHttpContext = A.Fake <HttpContextBase>();

            _sut = new DataRepository(mockHttpContext, _restRequestCreator, _restMethods, _productService, _cacheManagerService, _tokenService);
        }
Example #3
0
 public AgentService(IAgentRepository agentRepository, IAgentRateRepository rateRepository, IAgentSpecialRateRepository specialRateRepository, ICacheHelper cacheHelper,
                     IAgentConfigRepository agentConfigRepository, IHebaoDianweiRepository hebaoDianweiRepository, ISmsContentRepository smsContentRepository, ICityRepository iCityRepository, ICacheManagerService cacheManagerService)
     : base(agentRepository, cacheHelper)
 {
     _agentRepository       = agentRepository;
     _rateRepository        = rateRepository;
     _specialRateRepository = specialRateRepository;
     _agentConfig           = agentConfigRepository;
     _hebaoDianwei          = hebaoDianweiRepository;
     _smsContentRepository  = smsContentRepository;
     _iCityRepository       = iCityRepository;
     _cacheManagerService   = cacheManagerService;
 }
Example #4
0
 public TopRatedMoviesService(ICacheManagerService cacheManagerService, ITopRatedMoviesRepo topRatedMoviesRepo)
 {
     _cacheManagerService = cacheManagerService;
     _topRatedMoviesRepo  = topRatedMoviesRepo;
 }
 public PrivacyModel(ILogger <PrivacyModel> logger, ICacheManagerService cacheManagerService)
 {
     _logger = logger;
     _cacheManagerService = cacheManagerService;
 }
Example #6
0
 public HomeController(IUserRepository userRepository, ICacheManagerService cacheManagerService)
 {
     _userRepository      = userRepository;
     _cacheManagerService = cacheManagerService;
 }
Example #7
0
 public CacheManagerController(ICacheManagerService cacheManagerService)
 {
     _cacheManagerService = cacheManagerService;
 }
Example #8
0
 public RedisUrlRepository(ICacheManagerFactory cacheManagerFactory)
 {
     _cacheManagerService = cacheManagerFactory.GetCacheManagerService(ConstVariables.Caching.CommonCacheConfigurationKey);
 }
Example #9
0
 public TokenService(ICacheManagerService cacheManagerService, IRestRequestCreator restRequestCreator)
 {
     _cacheManagerService = cacheManagerService;
     _restRequestCreator  = restRequestCreator;
 }
Example #10
0
            public override void Initialize()
            {
                if (kService == null)
                {
                    kService = ServiceManager.Get<IKeyboardService>() as GlobalKeyboardService;
                }

                if (textureCacheService == null)
                {
                    textureCacheService = ServiceManager.Get<ICacheManagerService<Texture2D>>();
                }

                base.Initialize();
            }
Example #11
0
 public IndexModel(ILogger <IndexModel> logger, ICacheManagerService cacheManagerService)
 {
     _logger = logger;
     _cacheManagerService = cacheManagerService;
 }