public _RemoteRequestCompletionBlock_336(Puller _enclosing, RevisionInternal rev, string pathInside) { this._enclosing = _enclosing; this.rev = rev; this.pathInside = pathInside; }
public _RemoteRequestCompletionBlock_591(Puller _enclosing, IList <RevisionInternal > bulkRevs, IList <RevisionInternal> remainingRevs) { this._enclosing = _enclosing; this.bulkRevs = bulkRevs; this.remainingRevs = remainingRevs; }
public virtual void TestRunReplicationWithError() { var mockHttpClientFactory = new AlwaysFailingClientFactory(); var dbUrlString = "http://fake.test-url.com:4984/fake/"; var remote = new Uri(dbUrlString); var continuous = false; var r1 = new Puller(database, remote, continuous, mockHttpClientFactory, manager.workExecutor); Assert.IsFalse(r1.Continuous); RunReplication(r1); // It should have failed with a 404: Assert.AreEqual(ReplicationStatus.Stopped, r1.Status); Assert.AreEqual(0, r1.CompletedChangesCount); Assert.AreEqual(0, r1.ChangesCount); Assert.IsNotNull(r1.LastError); }
/// <exception cref="System.Exception"></exception> public virtual void TestRunReplicationWithError() { HttpClientFactory mockHttpClientFactory = new _HttpClientFactory_516(); string dbUrlString = "http://fake.test-url.com:4984/fake/"; Uri remote = new Uri(dbUrlString); bool continuous = false; Replication r1 = new Puller(database, remote, continuous, mockHttpClientFactory, manager.GetWorkExecutor()); NUnit.Framework.Assert.IsFalse(r1.IsContinuous()); RunReplication(r1); // It should have failed with a 404: NUnit.Framework.Assert.AreEqual(Replication.ReplicationStatus.ReplicationStopped, r1.GetStatus()); NUnit.Framework.Assert.AreEqual(0, r1.GetCompletedChangesCount()); NUnit.Framework.Assert.AreEqual(0, r1.GetChangesCount()); NUnit.Framework.Assert.IsNotNull(r1.GetLastError()); }
public _Runnable_207(Puller _enclosing) { this._enclosing = _enclosing; }
public _BatchProcessor_117(Puller _enclosing) { this._enclosing = _enclosing; }
public _BulkDownloaderDocumentBlock_506(Puller _enclosing, IList <RevisionInternal > remainingRevs) { this._enclosing = _enclosing; this.remainingRevs = remainingRevs; }
public _RemoteRequestCompletionBlock_439(Puller _enclosing, RevisionInternal rev) { this._enclosing = _enclosing; this.rev = rev; }