private PosMinting InitializePosMinting() { var posBlockAssembler = new Mock <PosBlockDefinition>( this.consensusLoop.Object, this.dateTimeProvider.Object, this.LoggerFactory.Object, this.txMempool.Object, this.mempoolSchedulerLock, this.network, this.stakeChain.Object, this.stakeValidator.Object); var blockBuilder = new MockPosBlockProvider(posBlockAssembler.Object); return(new PosMinting( blockBuilder, this.consensusLoop.Object, this.chain, this.network, this.connectionManager.Object, this.dateTimeProvider.Object, this.initialBlockDownloadState.Object, this.nodeLifetime.Object, this.coinView.Object, this.stakeChain.Object, this.stakeValidator.Object, this.mempoolSchedulerLock, this.txMempool.Object, this.walletManager.Object, this.asyncLoopFactory.Object, this.timeSyncBehaviorState.Object, this.LoggerFactory.Object)); }
private PosMinting InitializePosMinting() { var posBlockAssembler = new Mock <PosBlockDefinition>( this.consensusLoop.Object, this.dateTimeProvider.Object, this.LoggerFactory.Object, this.txMempool.Object, this.mempoolSchedulerLock, this.minerSettings.Object, this.network, this.stakeChain.Object, this.stakeValidator.Object); posBlockAssembler.Setup(a => a.Build(It.IsAny <ChainedHeader>(), It.IsAny <Script>())) .Returns(new BlockTemplate(this.network)); var blockBuilder = new MockPosBlockProvider(posBlockAssembler.Object); return(new PosMinting( blockBuilder, this.consensusLoop.Object, this.chain, this.network, this.dateTimeProvider.Object, this.initialBlockDownloadState.Object, this.nodeLifetime.Object, this.coinView.Object, this.stakeChain.Object, this.stakeValidator.Object, this.mempoolSchedulerLock, this.txMempool.Object, this.walletManager.Object, this.asyncLoopFactory.Object, this.timeSyncBehaviorState.Object, this.LoggerFactory.Object)); }