Пример #1
0
        public void CanSetKeyOnEntity()
        {
            var subject = new KeyBinder <TestEntity, string>(entity => entity.Key, (e, key) => e.Key = key);

            var testEntity = new TestEntity();

            subject.Set(testEntity, "Key2");

            Assert.Equal("Key2", testEntity.Key);
        }