public EntitySnapshotManager_Tests() { _userRepository = Resolve <IRepository <UserTestEntity> >(); _entitySnapshotManager = Resolve <IEntitySnapshotManager>(); Resolve <IEntityHistoryConfiguration>().IsEnabledForAnonymousUsers = true; }
/// <summary> /// shortcut of (IEntitySnapshotManager).GetEntitySnapshotAsync <TEntity, int > /// </summary> public static async Task <EntityHistorySnapshot> GetSnapshotAsync <TEntity>( this IEntitySnapshotManager entitySnapshotManager, int id, DateTime snapshotTime) where TEntity : class, IEntity <int> { return(await entitySnapshotManager.GetSnapshotAsync <TEntity, int>(id, snapshotTime)); }
public EntitySnapshotManager_Tests() { _userRepository = Resolve <IRepository <UserTestEntity> >(); _entitySnapshotManager = Resolve <IEntitySnapshotManager>(); }