Inheritance: IRulesResultCollection
        public void Setup()
        {
            childResult = new RulesResultBase();
            childResult.AddFailure("failure");

            result = new RulesResultCollectionBase();
            result.AddResult(childResult);
        }
        public IRulesResultCollection RunRules(Solution solution)
        {
            var solutionResults = SolutionProcessors.Select(processor => processor.RunRules(solution));
            var projectResults  =
                ProjectProcessors.SelectMany(processor => solution.Projects.Select(project => processor.RunRules(project)));

            var results = new RulesResultCollectionBase();

            results.AddResults(solutionResults);
            results.AddResults(projectResults);

            return(results);
        }
 public void Setup()
 {
     result = new RulesResultCollectionBase();
     result.AddResults(new []{new RulesResultBase()});
 }
 public void Setup()
 {
     result = new RulesResultCollectionBase();
 }