Arango.Tests.DocumentOperationsTests.Should_get_document_as_generic_object C# (CSharp) Méthode

Should_get_document_as_generic_object() private méthode

private Should_get_document_as_generic_object ( ) : void
Résultat void
        public void Should_get_document_as_generic_object()
        {
            var documents = Database.ClearCollectionAndFetchTestDocumentData(Database.TestDocumentCollectionName);
            var db = new ADatabase(Database.Alias);

            var getResult = db.Document
                .Get<Dummy>(documents[0].ID());

            Assert.AreEqual(200, getResult.StatusCode);
            Assert.IsTrue(getResult.Success);
            Assert.IsTrue(getResult.HasValue);
            Assert.AreEqual(documents[0].String("foo"), getResult.Value.Foo);
            Assert.AreEqual(documents[0].Int("bar"), getResult.Value.Bar);
            Assert.AreEqual(0, getResult.Value.Baz);
        }
DocumentOperationsTests