Arango.Tests.DocumentOperationsTests.Should_delete_document_with_waitForSync C# (CSharp) 메소드

Should_delete_document_with_waitForSync() 개인적인 메소드

private Should_delete_document_with_waitForSync ( ) : void
리턴 void
        public void Should_delete_document_with_waitForSync()
        {
            var documents = Database.ClearCollectionAndFetchTestDocumentData(Database.TestDocumentCollectionName);
            var db = new ADatabase(Database.Alias);

            var deleteResult = db.Document
                .WaitForSync(true)
                .Delete(documents[0].ID());

            Assert.AreEqual(200, deleteResult.StatusCode);
            Assert.IsTrue(deleteResult.Success);
            Assert.IsTrue(deleteResult.HasValue);
            Assert.AreEqual(deleteResult.Value.ID(), documents[0].ID());
            Assert.AreEqual(deleteResult.Value.Key(), documents[0].Key());
            Assert.AreEqual(deleteResult.Value.Rev(), documents[0].Rev());
        }
DocumentOperationsTests