Exemplo n.º 1
0
        public static void Test()
        {
            MapperExtension.CreateMapperByAssembly(new string[] { "ConsoleTest" });
            var entity = new TrackRawDataDto {
                Product = ProductEnum.ERP, CreateTime = DateTime.Now
            };
            var list = new List <TrackRawDataDto>();

            list.Add(entity);
            list.Add(entity);
            var result  = MapperExtension.MapTo <TrackRawDataEntity, TrackRawDataDto>(entity);
            var result1 = MapperExtension.MapTo <TrackRawDataEntity, TrackRawDataDto>(list);
        }
Exemplo n.º 2
0
 public void FixtureSetUp()
 {
     MapperExtension.CreateMapperByAssembly(new string[] { "OneOne.UnitTest" });
 }