private void ShowSelectedTest(string selectedTestName) { TestExistsReport testExistsReport = testsLogic.GetTest(selectedTestName); if (testExistsReport.Result) { test = testExistsReport.Test; TestInformation = new SelectedTestViewModel(test); } else { NotificationService.ShowMessageWindow(testExistsReport.Message); UpdateLists(); } }
public TestExistsReport GetTest(string testName) { TestExistsReport testExistsReport = new TestExistsReport(); if (operations.CheckIfFileExists(testName, Constants.TestPath, Constants.TestExtenstion)) { testExistsReport.Result = true; testExistsReport.Message = Constants.AllFine; testExistsReport.Test = operations.GetTest(testName); } else { testExistsReport.Result = false; testExistsReport.Message = Constants.NotFoundTestMessage; } return(testExistsReport); }