Exemple #1
0
 /// <summary>
 /// Goes through the list of conventions registered and create initial configuration.
 /// </summary>
 /// <param name="registrableObject">The registrable object.</param>
 private static void InitialiseConventions(IRegistrableObject registrableObject)
 {
     foreach (ICanConfigureConvention convention in
              _conventions.Where(convention => convention.IsApplicableToType(registrableObject.DomainObjectType)))
     {
         registrableObject.AddConvention(convention.GetConventionApplicant());
     }
 }