Skip to content

Commit 7a50f98

Browse files
author
Bart Koelman
committed
cibuild fixes
1 parent be0f452 commit 7a50f98

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

src/JsonApiDotNetCore/Resources/IResourceDefinition.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public interface IResourceDefinition<TResource, TId>
160160
/// <summary>
161161
/// Executes before replacing (overwriting) a to-one relationship.
162162
/// <para>
163-
/// Implementing this method enables to perform validations and change <see cref="rightResourceId" />, before the relationship is updated.
163+
/// Implementing this method enables to perform validations and change <paramref name="rightResourceId" />, before the relationship is updated.
164164
/// </para>
165165
/// </summary>
166166
/// <param name="leftResource">
@@ -269,8 +269,8 @@ Task OnRemoveFromRelationshipAsync(TResource leftResource, HasManyAttribute hasM
269269
/// <param name="resource">
270270
/// The original resource retrieved from the underlying data store (or a freshly instantiated resource in case of a POST resource request), updated with
271271
/// the changes from the incoming request. Exception: In case <paramref name="operationKind" /> is <see cref="OperationKind.DeleteResource" /> or
272-
/// <see cref="OperationKind.AddToRelationship" />, this is an empty object with only the <see cref="Identifiable.Id" /> property set, because for those
273-
/// endpoints no resource is retrieved upfront.
272+
/// <see cref="OperationKind.AddToRelationship" />, this is an empty object with only the <see cref="Identifiable{T}.Id" /> property set, because for
273+
/// those endpoints no resource is retrieved upfront.
274274
/// </param>
275275
/// <param name="operationKind">
276276
/// Identifies from which endpoint this method was called. Possible values: <see cref="OperationKind.CreateResource" />,

test/UnitTests/Extensions/ServiceCollectionExtensionsTests.cs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -493,24 +493,26 @@ public Task OnPrepareWriteAsync(IntResource resource, OperationKind operationKin
493493
throw new NotImplementedException();
494494
}
495495

496-
public Task<IIdentifiable> OnSetToOneRelationshipAsync(IntResource leftResource, HasOneAttribute hasOneRelationship, IIdentifiable rightResourceId, OperationKind operationKind,
497-
CancellationToken cancellationToken)
496+
public Task<IIdentifiable> OnSetToOneRelationshipAsync(IntResource leftResource, HasOneAttribute hasOneRelationship, IIdentifiable rightResourceId,
497+
OperationKind operationKind, CancellationToken cancellationToken)
498498
{
499499
throw new NotImplementedException();
500500
}
501501

502-
public Task OnSetToManyRelationshipAsync(IntResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, OperationKind operationKind,
503-
CancellationToken cancellationToken)
502+
public Task OnSetToManyRelationshipAsync(IntResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
503+
OperationKind operationKind, CancellationToken cancellationToken)
504504
{
505505
throw new NotImplementedException();
506506
}
507507

508-
public Task OnAddToRelationshipAsync(int leftResourceId, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
508+
public Task OnAddToRelationshipAsync(int leftResourceId, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
509+
CancellationToken cancellationToken)
509510
{
510511
throw new NotImplementedException();
511512
}
512513

513-
public Task OnRemoveFromRelationshipAsync(IntResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
514+
public Task OnRemoveFromRelationshipAsync(IntResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
515+
CancellationToken cancellationToken)
514516
{
515517
throw new NotImplementedException();
516518
}
@@ -579,24 +581,26 @@ public Task OnPrepareWriteAsync(GuidResource resource, OperationKind operationKi
579581
throw new NotImplementedException();
580582
}
581583

582-
public Task<IIdentifiable> OnSetToOneRelationshipAsync(GuidResource leftResource, HasOneAttribute hasOneRelationship, IIdentifiable rightResourceId, OperationKind operationKind,
583-
CancellationToken cancellationToken)
584+
public Task<IIdentifiable> OnSetToOneRelationshipAsync(GuidResource leftResource, HasOneAttribute hasOneRelationship, IIdentifiable rightResourceId,
585+
OperationKind operationKind, CancellationToken cancellationToken)
584586
{
585587
throw new NotImplementedException();
586588
}
587589

588-
public Task OnSetToManyRelationshipAsync(GuidResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, OperationKind operationKind,
589-
CancellationToken cancellationToken)
590+
public Task OnSetToManyRelationshipAsync(GuidResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
591+
OperationKind operationKind, CancellationToken cancellationToken)
590592
{
591593
throw new NotImplementedException();
592594
}
593595

594-
public Task OnAddToRelationshipAsync(Guid leftResourceId, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
596+
public Task OnAddToRelationshipAsync(Guid leftResourceId, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
597+
CancellationToken cancellationToken)
595598
{
596599
throw new NotImplementedException();
597600
}
598601

599-
public Task OnRemoveFromRelationshipAsync(GuidResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds, CancellationToken cancellationToken)
602+
public Task OnRemoveFromRelationshipAsync(GuidResource leftResource, HasManyAttribute hasManyRelationship, ISet<IIdentifiable> rightResourceIds,
603+
CancellationToken cancellationToken)
600604
{
601605
throw new NotImplementedException();
602606
}

test/UnitTests/Models/ResourceConstructionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using JsonApiDotNetCore.Resources;
66
using JsonApiDotNetCore.Serialization;
77
using Microsoft.AspNetCore.Http;
8-
using Microsoft.Extensions.DependencyInjection;
98
using Microsoft.Extensions.Logging.Abstractions;
109
using Moq;
1110
using Newtonsoft.Json;

0 commit comments

Comments
 (0)