public void SetUp()
 {
     _builder = new Builder(1)
                .SetMaximumDepth(5)
                .For <ResourceClassComplex>().Set(c => c.StringConversionProperty, (o, b, s) => b.Build <int>(s).ToString())
     ;
     _mapper = new ResourceMapper <object>();
     _mapper.RegisterOneWayMapping(new ClassSimpleOverrides <object>());
     _mapper.ExportMapsTo("maps");
 }
        public void ExportMapsTo_RegisterOneWayMapping_SimpleObjects()
        {
            if (Directory.Exists("maps"))
            {
                Directory.Delete("maps", true);
            }

            _mapper.ExportMapsTo("maps");
            _mapper.InitializeMap();

            DirectoryAssert.IsNotEmpty("maps");
        }
 public void SetUp()
 {
     _builder = new Builder();
     _mapper  = new ResourceMapper <object>();
     _mapper.ExportMapsTo("complex");
 }