public BlockStoreBehaviorTest() { this.chain = new ConcurrentChain(); this.blockRepository = new Mock <Bitcoin.BlockStore.IBlockRepository>(); this.blockCache = new Mock <IBlockStoreCache>(); this.behavior = new BlockStoreBehavior(this.chain, this.blockRepository.Object, this.blockCache.Object); }
public BlockStoreBehaviorTest() { this.chain = new ConcurrentChain(); this.blockRepository = new Mock <IBlockRepository>(); this.blockCache = new Mock <IBlockStoreCache>(); this.behavior = new BlockStoreBehavior(this.chain, this.blockRepository.Object, this.blockCache.Object, NullLogger.Instance); }
public BlockStoreBehaviorTest() { this.loggerFactory = new LoggerFactory(); this.chain = new ConcurrentChain(KnownNetworks.StratisMain); this.chainState = new Mock <IChainState>(); this.blockStore = new Mock <IBlockStore>(); this.behavior = new BlockStoreBehavior(this.chain, this.blockStore.Object, this.chainState.Object, this.loggerFactory); }
public BlockStoreBehaviorTest() { this.loggerFactory = new LoggerFactory(); this.chain = new ConcurrentChain(Network.StratisMain); this.blockRepository = new Mock <IBlockRepository>(); this.blockCache = new Mock <IBlockStoreCache>(); this.behavior = new BlockStoreBehavior(this.chain, this.blockRepository.Object, this.blockCache.Object, this.loggerFactory); }
public BlockStoreBehaviorTest() { this.loggerFactory = new LoggerFactory(); this.chainIndexer = new ChainIndexer(KnownNetworks.StratisMain); this.chainState = new Mock <IChainState>(); this.consensusManager = new Mock <IConsensusManager>(); this.blockStore = new Mock <IBlockStoreQueue>(); this.behavior = new BlockStoreBehavior(this.chainIndexer, this.chainState.Object, this.loggerFactory, this.consensusManager.Object, this.blockStore.Object); }