Example #1
0
 public void SetUp()
 {
     Client = CouchbaseClientFactory.CreateCouchbaseClient();
     if (_numberOfTimesCalled < 1)
     {
         CreateDocsFromFile("Data\\CityDocs.json", "city_", "state", "name");
         CreateViewFromFile("Data\\CityViews.json", "cities");
         Interlocked.Increment(ref _numberOfTimesCalled);
     }
 }
Example #2
0
        public void SetUp()
        {
            _Client = CouchbaseClientFactory.CreateCouchbaseClient();

            //TODO: uncomment this line when next NuGet (1.2.7) is pushed
            //log4net.Config.XmlConfigurator.Configure();

            var cluster = new CouchbaseCluster("couchbase");

            var stream = File.Open(@"Data\\ThingViews.json", FileMode.Open);

            cluster.CreateDesignDocument("default", "things", stream);
        }
        public void SetUp()
        {
            Client = CouchbaseClientFactory.CreateCouchbaseClient();

            if (_numberOfTimesCalled < 1)
            {
                var cluster = CouchbaseClusterFactory.CreateCouchbaseCluster();
                using (var stream = File.Open(@"Data\\ThingViews.json", FileMode.Open))
                {
                    cluster.CreateDesignDocument("default", "things", stream);
                }
                Interlocked.Increment(ref _numberOfTimesCalled);
            }
        }
        public void SetUp()
        {
            _Client = CouchbaseClientFactory.CreateCouchbaseClient();

            log4net.Config.XmlConfigurator.Configure();
        }