private static DtoLoaderConfiguration GetDtoLoaderConfiguration() { var configurationExpress = new DtoLoaderConfigurationExpression(); configurationExpress.AddProfile(new MyUnitTestDtoLoaderProfile()); var config = new DtoLoaderConfiguration(configurationExpress); return(config); }
public void Should_Have_Correct_RelatedDtoProperties_By_Assembly() { var configurationExpress = new DtoLoaderConfigurationExpression(); var assemblyOptions = new RelatedDtoLoaderAssemblyOptions(); configurationExpress.AddAssemblies(assemblyOptions, typeof(RelatedDtoLoaderConfigurationTest).Assembly); var config = new DtoLoaderConfiguration(configurationExpress); Check_RelatedDtoPropertie_By_Profile(config); Check_LoadRule_By_Profile(config); }