Tests.WhenMappingViaReflection.WhenMappingViaReflection C# (CSharp) Method

WhenMappingViaReflection() public method

public WhenMappingViaReflection ( ) : System.Collections.Generic
return System.Collections.Generic
        public WhenMappingViaReflection()
        {
            _testData = new List<TestClass>();
            _testData.Add(new TestClass { Id = 1, Name = "First", OtherValue = 0.01M });
            _testData.Add(new TestClass { Id = 2, Name = "Second" });
            _testData.Add(new TestClass { Id = 3, Name = "Third", OtherValue = 99.0M });
            _testData.Add(new TestClass { Id = 4, Name = "Fourth", OtherValue = 212M });
            _testData.Add(new TestClass { Id = 5, Name = "Fifth", OtherValue = 18.29M });

            _result = _testData.ToTable(new ClassMapping<TestClass>().AddAllPropertiesAsColumns());
        }