public void ResourceRouteParamterValidationTest(ResourceId resource, VerificationCaseType testCase, PrivateApiResponseCode expectedCode, Action <SearchRequest, Func <string, string> > requestUpdater, string caseDescription) { var request = SearchRequestComposer.GetBuilder(resource, $"{(int)resource}") .Filter(searchType: SearchRequestComposer.SearchTypeMap[SearchFilterType.NumOperator], field: $"{resource.ToString()}.P_Id", op: SearchRequestComposer.OperatorTypeMap[OperatorType.Eq], value: SearchValue.CreateConst("1234")); PerformValidationTest(request, resource, testCase, expectedCode, requestUpdater); }