public static void VerifyIsEmptyContents(string target, string subject) { if (string.IsNullOrEmpty(target)) { CommonFunctionHelper.ErrorHandling(subject + " cannot be blank."); } }
public static void VerifyFolderPath(string path, string subject) { VerifyIsEmptyContents(path, subject); if (Directory.Exists(path) == false) { CommonFunctionHelper.ErrorHandling(subject + " did not exsit."); } }