Skip to content

Commit 19d7586

Browse files
authored
Merge pull request #527 from json-api-dotnet/hotfix/make-resourcediff-external
hotfix: made resourcediffpair external to be able to unit test my hooks
2 parents ec4e76e + 8eb3bf0 commit 19d7586

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JsonApiDotNetCore/Hooks/Execution/AffectedResourceDiff.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.Linq;
@@ -31,7 +31,7 @@ public class ResourceDiff<TEntity> : AffectedResources<TEntity>, IAffectedResou
3131
/// </summary>
3232
public HashSet<TEntity> DatabaseValues { get => _databaseValues ?? ThrowNoDbValuesError(); }
3333

34-
internal ResourceDiff(IEnumerable requestEntities,
34+
public ResourceDiff(IEnumerable requestEntities,
3535
IEnumerable databaseEntities,
3636
Dictionary<RelationshipProxy, IEnumerable> relationships) : base(requestEntities, relationships)
3737
{
@@ -57,7 +57,7 @@ private HashSet<TEntity> ThrowNoDbValuesError()
5757

5858
public class ResourceDiffPair<TEntity> where TEntity : class, IIdentifiable
5959
{
60-
internal ResourceDiffPair(TEntity entity, TEntity databaseValue)
60+
public ResourceDiffPair(TEntity entity, TEntity databaseValue)
6161
{
6262
Entity = entity;
6363
DatabaseValue = databaseValue;

0 commit comments

Comments
 (0)