public void Setup() { childResult = new RulesResultBase(); childResult.AddFailure("failure"); result = new RulesResultCollectionBase(); result.AddResult(childResult); }
public void Setup() { runner = new RuleRunner(); solutionResult = new RulesResultBase(); projectResult = new RulesResultBase(); project = new Project("", new Guid()); solution = new Solution("", new[] { project }); solutionRuleProcessor = MockRepository.GenerateMock <ISolutionRuleProcessor>(); solutionRuleProcessor.Expect(r => r.RunRules(solution)).Return(solutionResult); projectRuleProcessor = MockRepository.GenerateMock <IProjectRuleProcessor>(); projectRuleProcessor.Expect(r => r.RunRules(project)).Return(projectResult); runner.SolutionProcessors = new[] { solutionRuleProcessor }; runner.ProjectProcessors = new[] { projectRuleProcessor }; results = runner.RunRules(solution); }
public void Setup() { result = new RulesResultBase(); result.AddFailure("failure"); }
public void Setup() { result = new RulesResultBase(); }