public void SetUp()
        {
            _rule1        = A.Fake <IRule <HostCertificates> >();
            _rule2        = A.Fake <IRule <HostCertificates> >();
            _preprocessor = A.Fake <IPreprocessorComposite <HostCertificates> >();

            _evaluator = new CertificateEvaluator(new [] { _rule1, _rule2 }, _preprocessor);
        }
コード例 #2
0
 protected Evaluator(IEnumerable <IRule <T> > rules, IPreprocessorComposite <T> preprocessor)
 {
     _preprocessor = preprocessor;
     _rules        = rules.OrderBy(_ => _.SequenceNo).ToList();
 }
コード例 #3
0
 public CertificateEvaluator(IEnumerable <IRule <HostCertificates> > rules, IPreprocessorComposite <HostCertificates> preprocessor)
     : base(rules, preprocessor)
 {
 }