Example #1
0
        public void Initialize()
        {
            _apiClientMock    = new Mock <IImpressionsSdkApiClient>();
            _queue            = new BlockingQueue <KeyImpression>(10);
            _impressionsCache = new InMemorySimpleCache <KeyImpression>(_queue);

            _impressionsLog = new ImpressionsLog(_apiClientMock.Object, 1, _impressionsCache, new TasksManager(wrapperAdapter), 10);
        }
Example #2
0
        private void BuildTreatmentLog(ConfigurationOptions config)
        {
            var impressionsCache = new InMemorySimpleCache <KeyImpression>(new BlockingQueue <KeyImpression>(_config.TreatmentLogSize));

            _impressionsLog = new ImpressionsLog(_impressionsSdkApiClient, _config.TreatmentLogRefreshRate, impressionsCache, _tasksManager);

            _customerImpressionListener = config.ImpressionListener;
        }
Example #3
0
        public void Initialize()
        {
            _apiClientMock    = new Mock <ITreatmentSdkApiClient>();
            _queue            = new BlockingQueue <KeyImpression>(10);
            _impressionsCache = new InMemorySimpleCache <KeyImpression>(_queue);

            _impressionsLog = new ImpressionsLog(_apiClientMock.Object, 1, _impressionsCache, 10);
        }