public void ShouldHaveValidConfiguration() { try { ConfigurationProvider.AssertConfigurationIsValid(); } catch (Exception) { throw; } }
/// <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>(); }
/// <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); }
/// <summary> /// Dry run single type map /// </summary> /// <param name="typeMap">Type map to check</param> public static void AssertConfigurationIsValid(TypeMap typeMap) { ConfigurationProvider.AssertConfigurationIsValid(typeMap); }
/// <summary> /// Dry run all configured type maps and throw <see cref="AutoMapperConfigurationException"/> for each problem /// </summary> public static void AssertConfigurationIsValid() { ConfigurationProvider.AssertConfigurationIsValid(); }
internal void ValidateMap(TypeMap typeMap) => ConfigurationProvider.AssertConfigurationIsValid(typeMap);
public void ShouldHaveValidConfiguration() { ConfigurationProvider.AssertConfigurationIsValid(); }