/// <summary>
        /// This instantiates test steps from the app.config
        /// </summary>
        /// <returns></returns>
        public static ITestExecution BuildTestRun(bool mock = false)
        {
            ITestExecution exe = null;

            if (mock)
            {
                exe = new MockTestExecution();
            }
            else
            {
                exe = new TestExecution();
            }

            var testDefinitions = ConfigHandler.ReadTestConfig();

            foreach (var test in testDefinitions.Tests)
            {
                var t        = Type.GetType(test.Type);
                var testImpl = Activator.CreateInstance(t) as ITestStep;
                //testImpl.Order = test.Order;
                exe.Steps.Add(testImpl);
            }

            exe.Steps.OrderBy(s => s.Order);
            return(exe);
        }
Example #2
0
 public XMLRepository(
     IEntityQuery entityQuery,
     IVETSEntityManagerView entityManagerView,
     IEntityCreate entityCreate,
     ITestExecution testExecution,
     ITestStatus testStatus,
     ITestEvents testEvents,
     ISystemLogManager logger,
     IReportService resportService,
     IApplication application,
     IVETSEntityManagerViewModelView entityManagerViewModelView,
     VTS vts
     )
 {
     _entityQuery       = entityQuery;
     _entityManagerView = entityManagerView;
     _entityCreate      = entityCreate;
     _testExecution     = testExecution;
     _testStatus        = testStatus;
     _testEvents        = testEvents;
     _logger            = logger;
     _resportService    = resportService;
     _vts         = vts;
     _application = application;
     _entityManagerViewModelView = entityManagerViewModelView;
 }