public void PrimitiveKeyInfoService_CreateKey()
        {
            PrimitiveKeyInfoService service = new PrimitiveKeyInfoService();

            IKeyInfo <BinaryEntity, Binary> key = null;

            bool res = service.TryCreateKeyInfo <BinaryEntity, Binary>(x => x.Binary, out key);

            Assert.IsTrue(res);
            Assert.IsNotNull(key);
            Assert.AreEqual(1, key.EntityKeyMembers.Length);
            Assert.AreEqual(typeof(Binary), key.KeyType);
        }
        public void PrimitiveKeyInfoService_CreateKey()
        {
            PrimitiveKeyInfoService service = new PrimitiveKeyInfoService();

            IKeyInfo<BinaryEntity, Binary> key = null;

            bool res = service.TryCreateKeyInfo<BinaryEntity, Binary>(x => x.Binary, out key);

            Assert.IsTrue(res);
            Assert.IsNotNull(key);
            Assert.AreEqual(1, key.EntityKeyMembers.Length);
            Assert.AreEqual(typeof(Binary), key.KeyType);
        }