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