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