public string GetCookie() { var fileContents = _fileHandler.GetFileContents(Constants.CookieLocation); if (!string.IsNullOrWhiteSpace(fileContents)) { return(fileContents); } var details = _consoleTools.GetStr("What is the cookie details?"); _fileHandler.SetFileContents(Constants.CookieLocation, details); return(details); }