public Repository(IDbContextFactory dbContextFactory, EventBag eventBag, IBoltOnClock boltOnClock) { DbContext = dbContextFactory.Get <TDbContext>(); DbSets = DbContext.Set <TEntity>(); _eventBag = eventBag; _boltOnClock = boltOnClock; }
public Repository(TCosmosDbOptions options, EventBag eventBag, IBoltOnClock boltOnClock, string collectionName = null) { DatabaseName = options.DatabaseName; _eventBag = eventBag; _boltOnClock = boltOnClock; CollectionName = collectionName ?? typeof(TEntity).Name.Pluralize(); DocumentClient = new DocumentClient(new Uri(options.Uri), options.AuthorizationKey, new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Auto }); DocumentCollectionUri = UriFactory.CreateDocumentCollectionUri(DatabaseName, CollectionName); }
static MediatorIntegration2Tests() { if (!MediatorTestHelper.IsIntegrationTestsEnabled) { return; } _serviceCollection = new ServiceCollection(); _serviceCollection.AddLogging(); _serviceCollection.BoltOn(); _serviceProvider = _serviceCollection.BuildServiceProvider(); _serviceProvider.TightenBolts(); _boltOnClock = _serviceProvider.GetService <IBoltOnClock>(); _sut = _serviceProvider.GetService <IMediator>(); }
public StopwatchInterceptor(IBoltOnLogger <StopwatchInterceptor> logger, IBoltOnClock boltOnClock) { _logger = logger; _boltOnClock = boltOnClock; }
public StudentRepository(IDbContextFactory dbContextFactory, EventBag eventBag, IBoltOnClock boltOnClock) : base(dbContextFactory, eventBag, boltOnClock) { }