private void TestCase(IWorkFacade workFacade)
 {
     workFacade.SetUp();
     BeginTracking(workFacade.Info());
     workFacade.Run();
     EndTracking();
     workFacade.CleanUp();
 }
Beispiel #2
0
        private void MainWork(IWorkFacade workFacade, string name, bool firstRun = false, bool measure = true)
        {
            workFacade.SetUp();
            if (measure)
            {
                using (Measure.Scope(new SampleGroupDefinition(
                                         Utils.DefinitionName(name, firstRun ? Utils.FirstKeyWord : string.Empty),
                                         _testSettings.SampleUnit)))
                {
                    workFacade.Run();
                }
            }
            else
            {
                workFacade.Run();
            }

            workFacade.CleanUp();
        }