Пример #1
0
        public ITestSuit Build()
        {
            TestSuit suit = new TestSuit();

            foreach (ICase @case in this.cases)
            {
                foreach (ISubject subject in this.subjects)
                {
                    if (@case.GetRequirements().All(subject.CanHandle) == true)
                    {
                        foreach (IProcedure procedure in this.procedures)
                        {
                            if (@case.GetRequirements().All(procedure.CanHandle) == true)
                            {
                                suit.AddInstance(new Instance(@case, subject, procedure));
                            }
                        }
                    }
                }
            }

            return(suit);
        }
Пример #2
0
        public ITestSuit Build()
        {
            TestSuit suit = new TestSuit();

            foreach (ICase @case in this.cases)
            {
                foreach (ISubject subject in this.subjects)
                {
                    if (@case.GetRequirements().All(subject.CanHandle) == true)
                    {
                        foreach (IProcedure procedure in this.procedures)
                        {
                            if (@case.GetRequirements().All(procedure.CanHandle) == true)
                            {
                                suit.AddInstance(new Instance(@case, subject, procedure));
                            }
                        }
                    }
                }
            }

            return suit;
        }