Skip to content

Commit a9600a0

Browse files
authored
Enable mocking IChangeContext (#51)
1 parent 17334b3 commit a9600a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SIL.Harmony.Core/IChangeContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface IChangeContext
1212
}
1313

1414
public async ValueTask<bool> IsObjectDeleted(Guid entityId) => (await GetSnapshot(entityId))?.EntityIsDeleted ?? true;
15-
internal IObjectBase Adapt(object obj);
15+
internal IObjectBase Adapt(object obj) => throw new NotImplementedException(); /* allow mocking IChangeContext */
1616
IAsyncEnumerable<object> GetObjectsReferencing(Guid entityId, bool includeDeleted = false);
1717
IAsyncEnumerable<T> GetObjectsOfType<T>(string jsonTypeName, bool includeDeleted = false) where T : class;
1818
}

0 commit comments

Comments
 (0)