Example #1
0
        static BaseUnitTest()
        {
            var client = new MongoClient(
                "mongodb://*****:*****@192.168.78.140:27017,192.168.78.141:27017,192.168.78.142/admin?authSource=admin&replicaSet=rs");

            ZaabeeMongoClient = new ZaabeeMongoClient(client, "TestDB");
        }
Example #2
0
 public DeleteTest()
 {
     _client = new ZaabeeMongoClient(
         Environment.GetEnvironmentVariable("MONGO_CONNECTION_STRING"), "TestDB");
 }
Example #3
0
 public UpdateTest()
 {
     _client = new ZaabeeMongoClient(
         "mongodb://*****:*****@192.168.78.152:27017/TestDB/?readPreference=primary", "TestDB");
 }
 public ArticleCategoryRepository(IZaabeeMongoClient client)
 {
     _client = client;
 }
Example #5
0
 public OrderRepository(IZaabeeMongoClient mongoClient, IZaabeeRedisClient cache)
 {
     _mongoClient = mongoClient;
     _cache       = cache;
 }
Example #6
0
 public AddTest()
 {
     _client = new ZaabeeMongoClient(
         "mongodb://192.168.213.130:27017/TestDB/?readPreference=primary", "TestDB");
 }