public static Task CreateDocumentsAsync(Database db, int n)
 {
     return(db.RunAsync((database) =>
     {
         database.BeginTransaction();
         ApiTest.CreateDocuments(database, n);
         database.EndTransaction(true);
     }));
 }
 public _TransactionalTask_1104(ApiTest _enclosing, int numberOfDocuments, Document
     [] docs, int numberOfUpdates, AtomicInteger numDocsUpdated, AtomicInteger numExceptions
     )
 {
     this._enclosing = _enclosing;
     this.numberOfDocuments = numberOfDocuments;
     this.docs = docs;
     this.numberOfUpdates = numberOfUpdates;
     this.numDocsUpdated = numDocsUpdated;
     this.numExceptions = numExceptions;
 }
 public _TransactionalTask_1086(ApiTest _enclosing, int numberOfDocuments, Document
     [] docs)
 {
     this._enclosing = _enclosing;
     this.numberOfDocuments = numberOfDocuments;
     this.docs = docs;
 }