//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testCompleteGetParameters() public virtual void testCompleteGetParameters() { IList <Authorization> mockAuthorizations = MockProvider.createMockGlobalAuthorizations(); AuthorizationQuery mockQuery = setUpMockQuery(mockAuthorizations); IDictionary <string, string> queryParameters = CompleteStringQueryParameters; RequestSpecification requestSpecification = given().contentType(POST_JSON_CONTENT_TYPE); foreach (KeyValuePair <string, string> paramEntry in queryParameters.SetOfKeyValuePairs()) { requestSpecification.parameter(paramEntry.Key, paramEntry.Value); } requestSpecification.expect().statusCode(Status.OK.StatusCode).when().get(SERVICE_PATH); verify(mockQuery).authorizationId(MockProvider.EXAMPLE_AUTHORIZATION_ID); verify(mockQuery).authorizationType(MockProvider.EXAMPLE_AUTHORIZATION_TYPE); verify(mockQuery).userIdIn(new string[] { MockProvider.EXAMPLE_USER_ID, MockProvider.EXAMPLE_USER_ID2 }); verify(mockQuery).groupIdIn(new string[] { MockProvider.EXAMPLE_GROUP_ID, MockProvider.EXAMPLE_GROUP_ID2 }); verify(mockQuery).resourceType(MockProvider.EXAMPLE_RESOURCE_TYPE_ID); verify(mockQuery).resourceId(MockProvider.EXAMPLE_RESOURCE_ID); verify(mockQuery).list(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void completeGetParameters() public virtual void completeGetParameters() { IDictionary <string, string> queryParameters = CompleteStringQueryParameters; RequestSpecification requestSpecification = given().contentType(POST_JSON_CONTENT_TYPE); foreach (KeyValuePair <string, string> paramEntry in queryParameters.SetOfKeyValuePairs()) { requestSpecification.parameter(paramEntry.Key, paramEntry.Value); } requestSpecification.expect().statusCode(Status.OK.StatusCode).when().get(QUERY_URL); verify(mockQuery).tenantId(MockProvider.EXAMPLE_TENANT_ID); verify(mockQuery).tenantName(MockProvider.EXAMPLE_TENANT_NAME); verify(mockQuery).tenantNameLike("%" + MockProvider.EXAMPLE_TENANT_NAME + "%"); verify(mockQuery).userMember(MockProvider.EXAMPLE_USER_ID); verify(mockQuery).groupMember(MockProvider.EXAMPLE_GROUP_ID); verify(mockQuery).list(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testCompleteGetParameters() public virtual void testCompleteGetParameters() { IDictionary <string, string> queryParameters = CompleteStringQueryParameters; RequestSpecification requestSpecification = given().contentType(POST_JSON_CONTENT_TYPE); foreach (KeyValuePair <string, string> paramEntry in queryParameters.SetOfKeyValuePairs()) { requestSpecification.parameter(paramEntry.Key, paramEntry.Value); } requestSpecification.expect().statusCode(Status.OK.StatusCode).when().get(USER_QUERY_URL); verify(mockQuery).userEmail(MockProvider.EXAMPLE_USER_EMAIL); verify(mockQuery).userFirstName(MockProvider.EXAMPLE_USER_FIRST_NAME); verify(mockQuery).userLastName(MockProvider.EXAMPLE_USER_LAST_NAME); verify(mockQuery).memberOfGroup(MockProvider.EXAMPLE_GROUP_ID); verify(mockQuery).memberOfTenant(MockProvider.EXAMPLE_TENANT_ID); verify(mockQuery).list(); }