public bool IsTestExists(Test test) { var isTestExists = false; if (test == null) { return(isTestExists); } var existingTest = _testGateway.GetTestByTestName(test.Name); isTestExists = existingTest != null; return(isTestExists); }