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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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);
        }