コード例 #1
0
 public void ShouldHaveValidConfiguration()
 {
     try
     {
         ConfigurationProvider.AssertConfigurationIsValid();
     }
     catch (Exception)
     {
         throw;
     }
 }
コード例 #2
0
 /// <summary>
 /// Dry run all type maps in given profile
 /// </summary>
 /// <typeparam name="TProfile">Profile type</typeparam>
 public static void AssertConfigurationIsValid <TProfile>() where TProfile : Profile, new()
 {
     ConfigurationProvider.AssertConfigurationIsValid <TProfile>();
 }
コード例 #3
0
 /// <summary>
 /// Dry run all type maps in given profile
 /// </summary>
 /// <param name="profileName">Profile name of type maps to test</param>
 public static void AssertConfigurationIsValid(string profileName)
 {
     ConfigurationProvider.AssertConfigurationIsValid(profileName);
 }
コード例 #4
0
 /// <summary>
 /// Dry run single type map
 /// </summary>
 /// <param name="typeMap">Type map to check</param>
 public static void AssertConfigurationIsValid(TypeMap typeMap)
 {
     ConfigurationProvider.AssertConfigurationIsValid(typeMap);
 }
コード例 #5
0
 /// <summary>
 /// Dry run all configured type maps and throw <see cref="AutoMapperConfigurationException"/> for each problem
 /// </summary>
 public static void AssertConfigurationIsValid()
 {
     ConfigurationProvider.AssertConfigurationIsValid();
 }
コード例 #6
0
 internal void ValidateMap(TypeMap typeMap)
 => ConfigurationProvider.AssertConfigurationIsValid(typeMap);
コード例 #7
0
 public void ShouldHaveValidConfiguration()
 {
     ConfigurationProvider.AssertConfigurationIsValid();
 }