public void NotifyOnRevoke_With_Valid_Args_Should_Be_Indexed() { // Arrange var revokeNotifier = this.CreateRevokeNotifier(); object @this = new object(); var key = "Foo"; string[] revokeKeys = { key }; // Act revokeNotifier.NotifyOnRevoke( @this, RevokeContextConcurrentCollectionTests.RevokeKeySubstitute.Instance, revokeKeys); //Assert subRevokeKeyIndexer.Received(1).AddRevokeContext(key, Arg.Any <RevokeContext>()); }
public void NotifyOnRevoke_With_Valid_Args_Should_Be_Indexed() { // Arrange var revokeNotifier = this.CreateRevokeNotifier(); object @this = new object(); Func <string, Task> callback = s => Task.CompletedTask; var key = "Foo"; string[] revokeKeys = { key }; // Act revokeNotifier.NotifyOnRevoke( @this, callback, revokeKeys); //Assert subRevokeKeyIndexer.Received(1).AddRevokeContext(key, Arg.Any <RevokeContext>()); }