Exemple #1
0
        private void BuildSubprotocol()
        {
            ISession                    session              = Substitute.For <ISession>();
            INodeStatsManager           nodeStatsManager     = new NodeStatsManager(Substitute.For <ITimerFactory>(), LimboLogs.Instance);
            MessageSerializationService serializationService = new MessageSerializationService();

            serializationService.Register(typeof(HiMessage).Assembly);
            IConsumerService           consumerService        = Substitute.For <IConsumerService>();
            INdmConsumerChannelManager consumerChannelManager = Substitute.For <INdmConsumerChannelManager>();
            EthereumEcdsa ecdsa = new EthereumEcdsa(ChainId.Mainnet, LimboLogs.Instance);

            _subprotocol = new NdmSubprotocol(session, nodeStatsManager, serializationService, LimboLogs.Instance, consumerService, consumerChannelManager, ecdsa, new DevWallet(new WalletConfig(), LimboLogs.Instance), Substitute.For <INdmFaucet>(), TestItem.PublicKeyB, TestItem.AddressB, TestItem.AddressA, false);
        }
 private void InitSubprotocol()
 {
     _subprotocol = new NdmSubprotocol(_session, _nodeStatsManager, _messageSerializationService,
                                       LimboLogs.Instance, _consumerService, _ndmConsumerChannelManager, _ecdsa, _wallet, _faucet,
                                       _configuredNodeId, _configuredProviderAddress, _configuredConsumerAddress, _verifySignature);
 }