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); }
protected Evaluator(IEnumerable <IRule <T> > rules, IPreprocessorComposite <T> preprocessor) { _preprocessor = preprocessor; _rules = rules.OrderBy(_ => _.SequenceNo).ToList(); }
public CertificateEvaluator(IEnumerable <IRule <HostCertificates> > rules, IPreprocessorComposite <HostCertificates> preprocessor) : base(rules, preprocessor) { }