Ejemplo n.º 1
0
        public ClientConnectorTester()
        {
            theCommand          = new RecordingCommand <RunSpec>();
            theRemoteController = Substitute.For <IRemoteController>();

            theConnector = new ClientConnector(new WebSocketsHandler(), theRemoteController, new ICommand[] { theCommand });
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            theCommand          = new RecordingCommand <RunSpec>();
            theRemoteController = MockRepository.GenerateMock <IRemoteController>();

            theConnector = new ClientConnector(new RecordingLogger(), theRemoteController, new ICommand[] { theCommand });
        }
        public CommandRunnerTester()
        {
            theCommand = new RecordingCommand <RunSpec>();

            var app = Substitute.For <IApplication>();

            theRemoteController = Substitute.For <IEngineController>();

            app.Engine.Returns(theRemoteController);

            theRunner = new CommandRunner(app, new ICommand[] { theCommand });
        }