Skip to content

hotfix: made resourcediffpair external to be able to unit test my hooks #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/JsonApiDotNetCore/Hooks/Execution/AffectedResourceDiff.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -31,7 +31,7 @@ public class ResourceDiff<TEntity> : AffectedResources<TEntity>, IAffectedResou
/// </summary>
public HashSet<TEntity> DatabaseValues { get => _databaseValues ?? ThrowNoDbValuesError(); }

internal ResourceDiff(IEnumerable requestEntities,
public ResourceDiff(IEnumerable requestEntities,
IEnumerable databaseEntities,
Dictionary<RelationshipProxy, IEnumerable> relationships) : base(requestEntities, relationships)
{
Expand All @@ -57,7 +57,7 @@ private HashSet<TEntity> ThrowNoDbValuesError()

public class ResourceDiffPair<TEntity> where TEntity : class, IIdentifiable
{
internal ResourceDiffPair(TEntity entity, TEntity databaseValue)
public ResourceDiffPair(TEntity entity, TEntity databaseValue)
{
Entity = entity;
DatabaseValue = databaseValue;
Expand Down