Exemplo n.º 1
0
        public PayeeService(IOnlineBankDatabaseSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            payees = database.GetCollection <Payee>(settings.PayeesCollectionName);
        }
        public PayeeService(IOnlineBankDatabaseSettings settings, JavaScriptEncoder jsEncoder)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            payees     = database.GetCollection <Payee>(settings.PayeesCollectionName);
            _jsEncoder = jsEncoder;
        }