void ApplyTest(TestInfo testInfo) { if (TestService.ApplyTest(testInfo, ShowCheckOutMessageBox)) { return; } var testWrapper = Tests.FirstOrDefault(test => test.TestInfo == testInfo); notificationService.DoNotification("Test not fixed", "Test not fixed \n" + testWrapper != null ? testWrapper.ToLog() : testInfo.Name, MessageBoxImage.Error); }