TinyMapper v3.0.1 Release Notes

Release Date: 2017-10-25 // over 4 years ago
  •     public class MapWithStaticFields
        {
            [Fact]
            public void MapStaticFields()
            {
                var source = new SourceStatic();
    
                TinyMapper.Bind<SourceStatic, TargetDto>();
                var actual = TinyMapper.Map<TargetDto>(source);
    
                Assert.Equal(SourceStatic.Id, actual.Id);
                Assert.Equal(SourceStatic.Name, actual.Name);
            }
        }
    
        public class SourceStatic
        {
            public static string Name = "test";
            public static int Id = 1;
        }
    
    
        public class TargetDto
        {
            public int Id { get; set; }
            public string Name { get; set; }
        }
    

    Thanks to Summitn