public static ByteAndBooleanPoco Create()
        {
            ByteAndBooleanPoco bbp = new ByteAndBooleanPoco();

            bbp.BooleanValue = true;
            bbp.BoolValue    = true;
            bbp.ByteValue    = Encoding.UTF8.GetBytes("HELLO WORLD");
            return(bbp);
        }
        public void TestBuildAllEntitesFromBooleanAndByte()
        {
            ByteAndBooleanPoco spo = ByteAndBooleanPoco.Create();
            IDictionary <String, EntityProperty> allEntities = ObjectSerializer.Serialize(spo);

            Assert.AreEqual(3, allEntities.Count);
            ByteAndBooleanPoco build = ObjectBuilder.Build <ByteAndBooleanPoco>(allEntities);

            Assert.IsNotNull(build);
            Assert.AreEqual(spo.BoolValue, build.BoolValue);
            Assert.AreEqual(spo.BooleanValue, build.BooleanValue);
            Assert.AreEqual(spo.ByteValue, build.ByteValue);
        }
        public void TestBooleanAndByte()
        {
            ByteAndBooleanPoco spo = ByteAndBooleanPoco.Create();
            IDictionary <String, EntityProperty> allEntities = ObjectSerializer.Serialize(spo);

            Assert.AreEqual(3, allEntities.Count);
            //CHECK ID
            Assert.IsTrue(allEntities.ContainsKey("BoolValue"));
            Assert.AreEqual(allEntities["BoolValue"].BooleanValue, spo.BoolValue);
            Assert.AreEqual(allEntities["BoolValue"].PropertyType, EdmType.Boolean);

            Assert.IsTrue(allEntities.ContainsKey("BooleanValue"));
            Assert.AreEqual(allEntities["BooleanValue"].BooleanValue, spo.BooleanValue);
            Assert.AreEqual(allEntities["BooleanValue"].PropertyType, EdmType.Boolean);

            Assert.IsTrue(allEntities.ContainsKey("ByteValue"));
            Assert.AreEqual(allEntities["ByteValue"].BinaryValue, spo.ByteValue);
            Assert.AreEqual(allEntities["ByteValue"].PropertyType, EdmType.Binary);
        }