public void ShouldInvalidateTheIdentityToken( [Frozen, Substitute] ICacheUtils cacheUtils, [Target] CacheController controller ) { controller.ClearAll(); cacheUtils.Received().InvalidatePrimaryToken(); }
public void ShouldInvalidateAllUserTokens( [Frozen, Substitute] ICacheUtils cacheUtils, [Target] CacheController controller ) { controller.ClearAll(); cacheUtils.Received().InvalidateAllUserTokens(); }
public void ShouldRemoveAnyUserTokensForTheGivenIdentityId( Guid identityId, [Frozen, Substitute] ICacheUtils cacheUtils, [Target] CacheController controller ) { controller.ClearUserSpecificCache(identityId); cacheUtils.Received().InvalidateTokensForUser(Is(identityId.ToString())); }