Ejemplo n.º 1
0
        public DocumentDbTest()
        {
            location = ConfigurationManager.AppSettings["DocumentDbUrl"];
            key      = ConfigurationManager.AppSettings["DocumentDbAuthKey"];
            database = ConfigurationManager.AppSettings["DocumentDbDatabaseId"];

            var db = new DocumentDb(location, key, database);

            db.ClearCollection(NewCollectionId).Wait();
            db.ClearCollection(CollectionId).Wait();
            db.CreateCollection(CollectionId).Wait();
        }