public ElasticRepositoryTestBase(ITestOutputHelper output) : base(output)
        {
            SystemClock.Reset();
            Log.MinimumLevel = LogLevel.Trace;
            Log.SetLogLevel <ScheduledTimer>(LogLevel.Warning);

            _cache         = new InMemoryCacheClient(Log);
            _messgeBus     = new InMemoryMessageBus(Log);
            _workItemQueue = new InMemoryQueue <WorkItemData>(loggerFactory: Log);
            _configuration = new MyAppElasticConfiguration(_workItemQueue, _cache, _messgeBus, Log);
            _client        = _configuration.Client;
        }
        public ElasticRepositoryTestBase(ITestOutputHelper output) : base(output)
        {
            Log.MinimumLevel = LogLevel.Information;
            Log.SetLogLevel <ScheduledTimer>(LogLevel.Warning);

            _cache = new InMemoryCacheClient(new InMemoryCacheClientOptions {
                LoggerFactory = Log
            });
            _messageBus = new InMemoryMessageBus(new InMemoryMessageBusOptions {
                LoggerFactory = Log
            });
            _workItemQueue = new InMemoryQueue <WorkItemData>(new InMemoryQueueOptions <WorkItemData> {
                LoggerFactory = Log
            });
            _configuration = new MyAppElasticConfiguration(_workItemQueue, _cache, _messageBus, Log);
            _client        = _configuration.Client;
        }
Пример #3
0
        public ElasticRepositoryTestBase(ITestOutputHelper output) : base(output)
        {
            Log.MinimumLevel = LogLevel.Trace;
            Log.SetLogLevel <ScheduledTimer>(LogLevel.Warning);

            _cache = new InMemoryCacheClient(new InMemoryCacheClientOptions {
                LoggerFactory = Log
            });
            _messageBus = new InMemoryMessageBus(new InMemoryMessageBusOptions {
                LoggerFactory = Log
            });
            _workItemQueue = new InMemoryQueue <WorkItemData>(new InMemoryQueueOptions <WorkItemData> {
                LoggerFactory = Log
            });
            _configuration = new MyAppElasticConfiguration(_workItemQueue, _cache, _messageBus, Log);
            _client        = _configuration.Client;
            _configuration.WaitForReady(new CancellationTokenSource(TimeSpan.FromMinutes(1)).Token);
        }
Пример #4
0
 public DailyLogEventWithNoCachingRepository(MyAppElasticConfiguration configuration) : base(configuration)
 {
     DisableCache();
 }
Пример #5
0
 public DailyLogEventRepository(MyAppElasticConfiguration elasticConfiguration) : base(elasticConfiguration.DailyLogEvents)
 {
 }
Пример #6
0
 public ChildRepository(MyAppElasticConfiguration elasticConfiguration) : base(elasticConfiguration.ParentChild.Child)
 {
 }
Пример #7
0
 public EmployeeRepository(MyAppElasticConfiguration elasticConfiguration) : base(elasticConfiguration.Employees.Employee)
 {
 }
Пример #8
0
 public IdentityWithNoCachingRepository(MyAppElasticConfiguration configuration) : base(configuration)
 {
     DisableCache();
 }
Пример #9
0
 public IdentityRepository(MyAppElasticConfiguration configuration) : base(configuration.Identities)
 {
 }
Пример #10
0
 public ParentRepository(MyAppElasticConfiguration elasticConfiguration) : base(elasticConfiguration.ParentChild)
 {
     BeforeQuery.AddHandler(OnBeforeQuery);
     DocumentsChanging.AddHandler(OnDocumentsChanging);
 }
Пример #11
0
 public MonthlyLogEventRepository(MyAppElasticConfiguration elasticConfiguration) : base(elasticConfiguration.MonthlyLogEvents.LogEvent)
 {
 }