protected override void DoTestInitialise(ServiceEndpointList endpoints)
 {
     foreach (ServiceEndpoint endpoint in endpoints)
     {
         endpoint.RequestRoot = ROOT_ELEMENT;
         endpoint.ResponseRoot = ROOT_ELEMENT;
     }
 }
 protected virtual void DoTestInitialise(ServiceEndpointList endpoints)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DynamicOptionSourceProvider"/> class.
 /// </summary>
 /// <param name="endpointList">A list of service endpoints.</param>
 /// <param name="communicator">A service endpoint communicator.</param>
 public DynamicOptionSourceProvider(ServiceEndpointList endpointList, IServiceEndpointCommunicator communicator)
 {
     this.endpointList = endpointList;
     this.communicator = communicator;
 }
 /// <summary>
 /// Creates a <see cref="Microsoft.Practices.EnterpriseLibrary.Validation.Validator"/> that will
 /// validate <paramref name="externalRuleHandlers"/>.
 /// </summary>
 /// <param name="externalRuleHandlers">The list of external rule handlers to post data to.</param>
 /// <param name="endpointList">A list of all service endpoints.</param>
 /// <param name="endpointCommunicator">A service endpoint communicator.</param>
 /// <returns>
 /// A <see cref="Microsoft.Practices.EnterpriseLibrary.Validation.Validator"/> that will
 /// validate <paramref name="externalRuleHandlers"/>.
 /// </returns>
 public Validator CreateExternalValidator(ServiceEndpointUtilisationList externalRuleHandlers, ServiceEndpointList endpointList, IServiceEndpointCommunicator endpointCommunicator)
 {
     IEnumerable<Validator> validatorsList = externalRuleHandlers.Select(externalRuleHandler => new ServiceEndpointValidator(externalRuleHandler, endpointList, endpointCommunicator));
     return new EntLib.AndCompositeValidator(validatorsList.ToArray());
 }