Apply() public méthode

public Apply ( Hangfire.States.ApplyStateContext context, IWriteOnlyTransaction transaction ) : void
context Hangfire.States.ApplyStateContext
transaction IWriteOnlyTransaction
Résultat void
        public void Apply_ShouldIncrease_DeletedCounter()
        {
            var handler = new DeletedState.Handler();
            handler.Apply(_context.Object, _transactionMock.Object);

            _transactionMock.Verify(x => x.IncrementCounter("stats:deleted"), Times.Once);
        }