public TestCaseService() { mongoRepository = new MongoRepository(); dataFillService = new DataFillService(); testModuleService = new TestModuleService(); testClassService = new TestClassService(); testDataService = new TestDataService(); testResultService = new TestResultService(); }
/// <summary> /// Refresh master database /// </summary> /// <param name="sender"></param> internal void RefreshMasterDatabase(Assembly sender) { testModuleService = new TestModuleService(); testCaseService = new Services.TestCaseService(); testClassService = new TestClassService(); //Update Project data UpdateProjectData(); //Refresh Modules testModuleService.RefreshModules(sender); //Refres Test Classes testClassService.RefreshTestClasses(sender); //Refresh TestCases IDictionary <int, Type> testClasses = testClassService.GetTestClasses(sender); List <string> testModuleClasses = testClasses.Select(tc => tc.Value.FullName).ToList(); IList <TestCaseModel> testCases = testCaseService.GetTestCaseList(testModuleClasses, sender); testCaseService.RefreshTestCases(testCases, sender); }