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); }
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; }