public void Should_set_int_value_to_int_property()
        {
            var entityProfile = new AnnotatedEntityProfile();

            var item     = new AnnotatedEntity();
            var propInfo = entityProfile.Properties[nameof(AnnotatedEntity.Id)];

            propInfo.SetPropertyValue(item, 10);

            Assert.AreEqual(10, item.Id);
        }
        public void Should_set_string_value_to_string_property()
        {
            var entityProfile = new AnnotatedEntityProfile();

            var item     = new AnnotatedEntity();
            var propInfo = entityProfile.Properties[nameof(AnnotatedEntity.Record)];

            propInfo.SetPropertyValue(item, "rec-01");

            Assert.AreEqual("rec-01", item.Record);
        }
        public void Should_calculate_value_of_an_int_property()
        {
            var entityProfile = new AnnotatedEntityProfile();
            var propInfo      = entityProfile.Properties[nameof(AnnotatedEntity.Id)];

            Assert.NotNull(propInfo);

            var item = new AnnotatedEntity {
                Id = 13
            };
            var result = propInfo.GetPropertyValue(item);

            Assert.AreEqual(13, result);
        }
        public void Should_calculate_value_of_a_string_property()
        {
            var entityProfile = new AnnotatedEntityProfile();
            var propInfo      = entityProfile.Properties[nameof(AnnotatedEntity.Record)];

            Assert.NotNull(propInfo);

            var item = new AnnotatedEntity {
                Record = "rec-01"
            };
            var result = propInfo.GetPropertyValue(item);

            Assert.AreEqual("rec-01", result);
        }
 public void SetUp()
 {
     _entityProfile = new AnnotatedEntityProfile();
 }