public void SearchUserFieldCore(ResourceId resourceId, SearchDateFieldCases.TestCases cases, bool isAsc)
        {
            var expectedOperator = cases == SearchDateFieldCases.TestCases.EqualsTo ? OperatorType.Eq : cases == SearchDateFieldCases.TestCases.Less ? OperatorType.Lt : OperatorType.Gt;
            var request          = SearchRequestComposer.GetBuilderWithRestrictions(resourceId)
                                   .WithSort(isAsc, $"{resourceId}.{FieldCreator.Data[$"{resourceId}_{TestCoreFramework.Enums.FieldType.DateTime}"].Name}")
                                   .DateFilter($"{resourceId}.{FieldCreator.Data[$"{resourceId}_{TestCoreFramework.Enums.FieldType.DateTime}"].Name}", expectedOperator,
                                               "Asia/Tokyo", CreateDateTime.ToString(SearchConstants.SearchApiFullDateTemplate));
            var handler  = new DefaultManager();
            var response = handler.Send <SearchResponse>(request);

            SearchDateFieldCases.VerifySearchResult(response, resourceId, cases, $"{resourceId.ToString()}.{FieldCreator.Data[$"{resourceId}_{TestCoreFramework.Enums.FieldType.DateTime}"].Name}", isAsc, RecordsCreator, NumRecordsEachCase, DateTimeResponseFormat);
        }
        public void SearchSystemApplicationFieldCore(ResourceId resourceId, string field, SearchDateFieldCases.TestCases cases, bool isAsc)
        {
            var expectedOperator = cases == SearchDateFieldCases.TestCases.EqualsTo ? OperatorType.Eq : cases == SearchDateFieldCases.TestCases.Less ? OperatorType.Lt : OperatorType.Gt;
            var requestBuilder   = SearchRequestComposer.GetBuilderWithRestrictions(resourceId)
                                   .WithSort(isAsc, $"{resourceId.ToString()}.{field}");
            var request = requestBuilder.DateFilter($"{resourceId.ToString()}.{field}", expectedOperator,
                                                    "Asia/Tokyo", CreateDateTime.ToString(SearchConstants.SearchApiShortDateTemplate));
            var handler  = new DefaultManager();
            var response = handler.Send <SearchResponse>(request);

            SearchDateFieldCases.VerifySearchResult(response, resourceId, cases, $"{resourceId.ToString()}.{field}", isAsc, RecordsCreator, NumRecordsEachCase, DateResponseFormat);
        }