private void InitializeRepositories(DBConnectionProvider connectionsProvider)
 {
     foreach (var region in UsersRegions.AvailableRegions)
     {
         _repositories.Add(region, new UsersRepository(connectionsProvider.GetConnection(region)));
     }
 }
 public Repository(DBConnectionProvider connectionProvider)
 {
     _connection = connectionProvider.GetConnection();
 }
 public UsersShardedRepository(DBConnectionProvider connectionsProvider, IMapper mapper)
 {
     InitializeRepositories(connectionsProvider);
     _localRepository = _repositories[connectionsProvider.CurrentRegion];
     this._mapper     = mapper;
 }