private void SetCurrentCommandProvider(IRemoteCommandProvider newCommandProvider)
 {
     if (_currentCommandProvider != null)
     {
         _currentCommandProvider.TransportLayerModeChanged -= _currentCommandProvider_TransportLayerModeChanged;
     }
     _currentCommandProvider = newCommandProvider;
     _currentCommandProvider.TransportLayerModeChanged += _currentCommandProvider_TransportLayerModeChanged;
 }
        private void SelectBestCommandProvider()
        {
            if (_currentCommandProvider == null)
            {
                _currentCommandProvider = _commandProviders[0];
            }

            foreach (var provider in _commandProviders)
            {
                if (provider.CurrentTransportLayerMode < _currentCommandProvider.CurrentTransportLayerMode)
                {
                    SetCurrentCommandProvider(provider);
                }
            }
        }
Beispiel #3
0
 public RemoteActionSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider)
 {
     this.commandProvider = commandProvider;
     this.expectProvder   = expectProvider;
 }
 public RemoteExpectClassSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string className)
     : base(commandProvider, expectProvider)
 {
     this.className = className;
 }
 public RemoteExpectSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider)
     : base(commandProvider, expectProvider)
 {
 }
 public RemoteBaseExpectSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider)
 {
     this.commandProvider = commandProvider;
     this.expectProvider = expectProvider;
 }
 public RemoteExpectValueSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string value)
     : base(commandProvider, expectProvider)
 {
     this.value = value;
 }
 public RemoteExpectTextSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string text)
     : base(commandProvider, expectProvider)
 {
     this.text = text;
 }
 public RemoteExpectCountSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, int count)
     : base(commandProvider, expectProvider)
 {
     this.count = count;
 }
 public RemoteExpectClassSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string className)
     : base(commandProvider, expectProvider)
 {
     this.className = className;
 }
 public RemoteExpectTextSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string text)
     : base(commandProvider, expectProvider)
 {
     this.text = text;
 }
 public RemoteExpectCountSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, int count)
     : base(commandProvider, expectProvider)
 {
     this.count = count;
 }
 public RemoteExpectValueSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider, string value)
     : base(commandProvider, expectProvider)
 {
     this.value = value;
 }
 public RemoteExpectSyntaxProvider(IRemoteCommandProvider commandProvider, IRemoteExpectProvider expectProvider)
     : base(commandProvider, expectProvider)
 {
 }
        }

        public void CssClass(string selector, string className)
        {
Beispiel #16
0
 public RemoteExpectProvider(IRemoteCommandProvider commandProvider)
 {
     this.commandProvider = commandProvider;
 }