Example #1
0
        public void Issue_No8_Guid_conversion()
        {
            Database.CreateTestCollection(Database.TestDocumentCollectionName, ACollectionType.Document);
            var db = new ADatabase(Database.Alias);

            var demo = new IssueNo8Entity();

            demo.SomeOtherId = Guid.NewGuid();
            demo.Name        = "My name";

            var createResult = db.Document.Create <IssueNo8Entity>(Database.TestDocumentCollectionName, demo);

            Assert.IsTrue(createResult.Success);

            var getresult = db.Document.Get <IssueNo8Entity>(createResult.Value.ID());

            Assert.IsTrue(getresult.Success);
            Assert.AreEqual(demo.SomeOtherId.ToString(), getresult.Value.SomeOtherId.ToString());
        }
Example #2
0
        public void Issue_No8_Guid_conversion()
        {
            Database.CreateTestCollection(Database.TestDocumentCollectionName, ACollectionType.Document);
            var db = new ADatabase(Database.Alias);

            var demo = new IssueNo8Entity();
            demo.SomeOtherId = Guid.NewGuid();
            demo.Name = "My name";

            var createResult = db.Document.Create(Database.TestDocumentCollectionName, demo);

            Assert.IsTrue(createResult.Success);

            var getresult = db.Document.Get<IssueNo8Entity>(createResult.Value.ID());

            Assert.IsTrue(getresult.Success);
            Assert.AreEqual(demo.SomeOtherId.ToString(), getresult.Value.SomeOtherId.ToString());
        }