public void InvalidInjectionTests(DatadownloadParam param, Enums.InvalidInjection testcase)
        {
            var request = new Dictionary <string, string>
            {
                ["charset"] = param == DatadownloadParam.Charset ? InjectionMapper[testcase] : "windows-31j",
                ["id"]      = param == DatadownloadParam.Id ? InjectionMapper[testcase] : "2"
            };

            ExecuteTestCases(request, HttpMethod.GET);
        }
        public void InvalidTests(DatadownloadParam param, Invalid testcase)
        {
            var request = new Dictionary <string, string>
            {
                ["charset"] = param == DatadownloadParam.Charset ? InvalidMapper[testcase] : "windows-31j",
                ["id"]      = param == DatadownloadParam.Id ? InvalidMapper[testcase] : "2"
            };

            if (testcase == Invalid.Missing)
            {
                request.Remove(param.ToString().ToLower());
            }
            ExecuteTestCases(request, HttpMethod.GET);
        }
        public void ValidDuplicateTests(DatadownloadParam param, Enums.ValidDuplicated testcase)
        {
            var request = new List <KeyValuePair <string, string> >
            {
                new KeyValuePair <string, string>("id", PrepareReport.Data[ReportCreateStep.CreateTable].ToString()),
                new KeyValuePair <string, string>("charset", "windows-31j"),
            };

            if (param == DatadownloadParam.Id)
            {
                request.Add(new KeyValuePair <string, string>(param.ToString().ToLower(), testcase == Enums.ValidDuplicated.SameValue ? PrepareReport.Data[ReportCreateStep.CreateTable].ToString() : "2"));
            }
            else
            {
                request.Add(new KeyValuePair <string, string>(param.ToString().ToLower(), testcase == Enums.ValidDuplicated.SameValue ? "windows-31j" : "windows-874"));
            }
            ExecuteTestCases(request);
        }