Exemplo n.º 1
0
        public void Creating_instance_with_multiple_values_with_column_name_according_to_convention_sets_corresponding_properties()
        {
            _mapper = new EntityMapper(new ConventionReader(new UpperCaseConvention()));

            _row.Add("NAME", "a name");
            _row.Add("ID", _guid1);

            var instance = _mapper.CreateInstance <ClassWithoutRelations>(_row);

            Assert.AreEqual("a name", instance.Name);
            Assert.AreEqual(_guid1, instance.Id);
        }
Exemplo n.º 2
0
        public void Creating_instance_with_multiple_values_with_column_name_according_to_convention_sets_corresponding_properties()
        {
            _mapper = new EntityMapper(new ConventionReader(new UpperCaseConvention()));

            _row.Add("NAME", "a name");
            _row.Add("ID", _guid1);

            var instance = _mapper.CreateInstance<ClassWithoutRelations>(_row);

            Assert.AreEqual("a name", instance.Name);
            Assert.AreEqual(_guid1, instance.Id);
        }