public IsCompleteRequestHandlerTests()
        {
            var signatureValidator = new SignatureValidator("key", "HMACSHA256");

            _serverRecordingSocket = new RecordingSocket();
            _serverChannel         = new MessageSender(_serverRecordingSocket, signatureValidator);
            _ioRecordingSocket     = new RecordingSocket();
            _ioPubChannel          = new MessageSender(_ioRecordingSocket, signatureValidator);
            _kernelStatus          = new KernelStatus();
        }
Exemple #2
0
        protected JupyterRequestHandlerTestBase(ITestOutputHelper output)
        {
            _disposables.Add(output.SubscribeToPocketLogger());

            Kernel = new CompositeKernel
            {
                new CSharpKernel()
            }.UseDefaultMagicCommands();

            _disposables.Add(Kernel.LogEventsToPocketLogger());

            var signatureValidator = new SignatureValidator("key", "HMACSHA256");

            ServerRecordingSocket = new RecordingSocket();
            ServerChannel         = new MessageSender(ServerRecordingSocket, signatureValidator);
            IoRecordingSocket     = new RecordingSocket();
            IoPubChannel          = new MessageSender(IoRecordingSocket, signatureValidator);
        }