示例#1
0
        public AutoLocalConnectorTests()
        {
            _connectParser = Mock.Create <IConnectParser>();
            _recorder      = Mock.Create <IRecorder>();

            _sut = new AutoLocalConnector(_connectParser, _recorder, "127.0.0.1:10000");
        }
示例#2
0
        public MonitoredRemoteOperator(
            IAutoLocalConnector autoLocalConnector,
            IRemoteTraceMonitorСonsistent remoteTraceMonitorСonsistent,
            IRecorder recorder)
        {
            _autoLocalConnector           = autoLocalConnector;
            _remoteTraceMonitorСonsistent = remoteTraceMonitorСonsistent;
            _recorder = recorder;

            _autoLocalConnector.TextReceived += TextReceivedHandler;
            _autoLocalConnector.Connected    += ConnectedHandler;
            _remoteTraceMonitorСonsistent.CommandReceived += TextEnteredHandler;
        }
示例#3
0
 public MonitoredRemoteOperatorTests()
 {
     _autoLocalConnector = Mock.Create <IAutoLocalConnector>();
     _remoteTraceMonitor = Mock.Create <IRemoteTraceMonitorСonsistent>();
     _recorder           = Mock.Create <IRecorder>();
 }