All tests green

This commit is contained in:
Stephan
2018-04-28 09:55:36 +02:00
parent 923fdf9199
commit 27390afe86
6 changed files with 39 additions and 5 deletions

View File

@@ -565,6 +565,14 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
public static event TypedEventHandler<TRepository, ScopedEntityEventArgs> ScopeEntityRemove;
public static event TypedEventHandler<TRepository, ScopedVersionEventArgs> ScopeVersionRemove;
// used by tests to clear events
internal static void ClearScopeEvents()
{
ScopedEntityRefresh = null;
ScopeEntityRemove = null;
ScopeVersionRemove = null;
}
protected void OnUowRefreshedEntity(ScopedEntityEventArgs args)
{
ScopedEntityRefresh.RaiseEvent(args, This);