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