public override void Initialize()
        {
            this.votingDataEncoder = new VotingDataEncoder(this.Parent.LoggerFactory);
            this.ruleEngine        = (PoAConsensusRuleEngine)this.Parent;
            this.loggerFactory     = this.Parent.LoggerFactory;
            this.logger            = this.loggerFactory.CreateLogger(this.GetType().FullName);
            this.network           = this.Parent.Network;
            this.federationManager = this.ruleEngine.FederationManager;
            this.slotsManager      = this.ruleEngine.SlotsManager;
            this.consensusFactory  = (CollateralPoAConsensusFactory)this.network.Consensus.ConsensusFactory;

            base.Initialize();
        }
 public CollateralPoAConsensusFactoryTests()
 {
     this.factory = new CollateralPoAConsensusFactory();
 }