@@ -55,8 +55,8 @@ protected SerializationBenchmarkBase()
55
55
var sparseFieldSetCache = new SparseFieldSetCache ( constraintProviders , resourceDefinitionAccessor ) ;
56
56
var requestQueryStringAccessor = new FakeRequestQueryStringAccessor ( ) ;
57
57
58
- ResponseModelAdapter = new ResponseModelAdapter ( request , options , ResourceGraph , linkBuilder , metaBuilder , resourceDefinitionAccessor ,
59
- evaluatedIncludeCache , sparseFieldSetCache , requestQueryStringAccessor ) ;
58
+ ResponseModelAdapter = new ResponseModelAdapter ( request , options , linkBuilder , metaBuilder , resourceDefinitionAccessor , evaluatedIncludeCache ,
59
+ sparseFieldSetCache , requestQueryStringAccessor ) ;
60
60
}
61
61
62
62
protected abstract JsonApiRequest CreateJsonApiRequest ( IResourceGraph resourceGraph ) ;
@@ -129,37 +129,37 @@ public sealed class ResourceA : Identifiable
129
129
130
130
private sealed class FakeResourceDefinitionAccessor : IResourceDefinitionAccessor
131
131
{
132
- public IImmutableSet < IncludeElementExpression > OnApplyIncludes ( Type resourceType , IImmutableSet < IncludeElementExpression > existingIncludes )
132
+ public IImmutableSet < IncludeElementExpression > OnApplyIncludes ( ResourceType resourceType , IImmutableSet < IncludeElementExpression > existingIncludes )
133
133
{
134
134
return existingIncludes ;
135
135
}
136
136
137
- public FilterExpression OnApplyFilter ( Type resourceType , FilterExpression existingFilter )
137
+ public FilterExpression OnApplyFilter ( ResourceType resourceType , FilterExpression existingFilter )
138
138
{
139
139
return existingFilter ;
140
140
}
141
141
142
- public SortExpression OnApplySort ( Type resourceType , SortExpression existingSort )
142
+ public SortExpression OnApplySort ( ResourceType resourceType , SortExpression existingSort )
143
143
{
144
144
return existingSort ;
145
145
}
146
146
147
- public PaginationExpression OnApplyPagination ( Type resourceType , PaginationExpression existingPagination )
147
+ public PaginationExpression OnApplyPagination ( ResourceType resourceType , PaginationExpression existingPagination )
148
148
{
149
149
return existingPagination ;
150
150
}
151
151
152
- public SparseFieldSetExpression OnApplySparseFieldSet ( Type resourceType , SparseFieldSetExpression existingSparseFieldSet )
152
+ public SparseFieldSetExpression OnApplySparseFieldSet ( ResourceType resourceType , SparseFieldSetExpression existingSparseFieldSet )
153
153
{
154
154
return existingSparseFieldSet ;
155
155
}
156
156
157
- public object GetQueryableHandlerForQueryStringParameter ( Type resourceType , string parameterName )
157
+ public object GetQueryableHandlerForQueryStringParameter ( Type resourceClrType , string parameterName )
158
158
{
159
159
return null ;
160
160
}
161
161
162
- public IDictionary < string , object > GetMeta ( Type resourceType , IIdentifiable resourceInstance )
162
+ public IDictionary < string , object > GetMeta ( ResourceType resourceType , IIdentifiable resourceInstance )
163
163
{
164
164
return null ;
165
165
}
@@ -223,23 +223,23 @@ private sealed class FakeLinkBuilder : ILinkBuilder
223
223
{
224
224
public TopLevelLinks GetTopLevelLinks ( )
225
225
{
226
- return new TopLevelLinks
226
+ return new ( )
227
227
{
228
228
Self = "TopLevel:Self"
229
229
} ;
230
230
}
231
231
232
- public ResourceLinks GetResourceLinks ( string resourceName , string id )
232
+ public ResourceLinks GetResourceLinks ( ResourceType resourceType , string id )
233
233
{
234
- return new ResourceLinks
234
+ return new ( )
235
235
{
236
236
Self = "Resource:Self"
237
237
} ;
238
238
}
239
239
240
240
public RelationshipLinks GetRelationshipLinks ( RelationshipAttribute relationship , IIdentifiable leftResource )
241
241
{
242
- return new RelationshipLinks
242
+ return new ( )
243
243
{
244
244
Self = "Relationship:Self" ,
245
245
Related = "Relationship:Related"
0 commit comments