private static void ThrowException(IEnumerable<BrokenRule> brokenRules)
 {
     if (!brokenRules.Any())
     {
         return;
     }
     var message = brokenRules.GetInvalidDomainObjectExceptionMessage();
     throw new EntityIsNotValidException(message);
 }