var requestsList = new string[] {
"https://www.justanswer.com/sip/law?r=ppc|ga|26|||&JPKW=online%20ask%20a%20nurse&JPDC=S&JPST=&JPAD=398233031014&JPMT=b&JPNW=g&JPAF=txt&JPRC=1&JPCD=&JPOP=&cmpid=1059218085&agid=55772528761&fiid=&tgtid=kwd-1373646269&ntw=g&dvc=m&cmpid=1059218085&agid=55772528761&fiid=&tgtid=kwd-1373646269&ntw=g&dvc=m",
"https://www.justanswer.com/law/jni61-laws-regarding-often-carpet-paint.html?membershipModelTrialType=TrialValue",
"https://www.justanswer.com/law/jni61-laws-regarding-often-carpet-paint.html?membershipModelTrial=NoTrial",
"https://www.justanswer.com/law/jni61-laws-regarding-often-carpet-paint.html?membershipModelSubscription=",
"https://www.justanswer.com/law/membershipModel-regarding-oftner-carpet.html"
Console.WriteLine("Check if exists membershipModelTrialType - {0}", CheckIfExistsUrlParameter("membershipModelTrialType", requestsList));
Console.WriteLine("Check if exists membershipModelTrial - {0}", CheckIfExistsUrlParameter("membershipModelTrial", requestsList));
Console.WriteLine("Check if exists membershipModelSubscription - {0}", CheckIfExistsUrlParameter("membershipModelSubscription", requestsList));
Console.WriteLine("Check if exists membershipModel - {0}", CheckIfExistsUrlParameter("membershipModel", requestsList));
Console.WriteLine("Wrong parameter passed - {0}", CheckIfExistsUrlParameter(null, requestsList));
Console.WriteLine("----------------------------------------");
Console.WriteLine("Get membershipModelTrialType value - {0}", GetUrlParameterValue("membershipModelTrialType", requestsList));
Console.WriteLine("Get membershipModelTrial value - {0}", GetUrlParameterValue("membershipModelTrial", requestsList));
Console.WriteLine("Get membershipModelSubscription value - {0}", GetUrlParameterValue("membershipModelSubscription", requestsList));
Console.WriteLine("Get membershipModel value - {0}", GetUrlParameterValue("membershipModel", requestsList));
Console.WriteLine("Wrong parameter passed - {0}", GetUrlParameterValue(null, requestsList));
private string CheckIfExistsUrlParameter(string urlParameterName, string[] requestsList)
private string GetUrlParameterValue(string urlParameterName, string[] requestsList)
void Info(string message);
void Error(string message);