Example #1
0
        public MongoFixture()
        {
            var options = OptionsHelper.GetOptions <MongoOptions>("mongo");

            _client       = new MongoClient(options.ConnectionString);
            _databaseName = options.Database;
        }
Example #2
0
        static AuthHelper()
        {
            var options = OptionsHelper.GetOptions <AuthOptions>("auth");

            AuthManager = new AuthManager(options, new UtcClock());
        }