public void Unapply_ShouldRemoveTheJob_FromTheFailedSet()
        {
            var handler = new FailedStateHandler();
            handler.Unapply(_context, _transaction.Object);

            _transaction.Verify(x => x.RemoveFromSet("failed", JobId));
        }
        public void Apply_ShouldAddTheJob_ToTheFailedSet()
        {
            var handler = new FailedStateHandler();
            handler.Apply(_context, _transaction.Object);

            _transaction.Verify(x => x.AddToSet(
                "failed", JobId, It.IsAny<double>()));
        }
 public void StateName_ShouldBeEqualToFailedState()
 {
     var handler = new FailedStateHandler();
     Assert.Equal(FailedState.StateName, handler.StateName);
 }