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);
        }