コード例 #1
0
ファイル: ProfileInstance.cs プロジェクト: formist/LinkMe
        private StepInstance CreateStepInstance(Profile profile, ProfileCounters counters, StepInstance parentStepInstance, AndStep step)
        {
            var stepInstance = new AndStepInstance(this, parentStepInstance, step);

            CreateChildStepInstances(stepInstance, step, profile, counters);
            return(stepInstance);
        }
コード例 #2
0
ファイル: ProfileInstance.cs プロジェクト: formist/LinkMe
        public ProfileInstance(Profile profile, ProfileCounters counters, int user, int totalUsers)
        {
            _profile    = profile;
            _user       = user;
            _totalUsers = totalUsers;
            _counters   = counters;
            _iteration  = counters.NextIteration;

            // Create the test fixture to run the profile.

            _testFixture = Container.Current.Resolve <IProfileTestFixture>(_profile.TestFixture);

            // Create the step hierarchy.

            var rootStep = new AndStepInstance(this, null, new AndStep());

            CreateChildStepInstances(rootStep, profile.Steps, profile, counters);
            CurrentStep = rootStep;
        }