Beispiel #1
0
        public void SimpleEntityToBSon()
        {
            var ent = new myEntity()
            {
                Property1 = 1, Property2 = 56.09, Property3 = "testtest"
            };

            ent.ToBSon();
        }
Beispiel #2
0
        public void SimpleEntityToBSonSerialized()
        {
            var ent = new myEntity()
            {
                Property1 = 1, Property2 = 56.09, Property3 = "testtest"
            };
            var rr = ent.ToBSon().Serialize();

            Assert.AreEqual(true, rr.Length > 0);
        }