Exemplo n.º 1
0
        public void Unapply_ShouldRemoveTheJob_FromTheSucceededList()
        {
            var handler = new SucceededStateHandler();
            handler.Unapply(_context, _transaction.Object);

            _transaction.Verify(x => x.RemoveFromList("succeeded", JobId));
        }
Exemplo n.º 2
0
        public void Apply_ShouldInsertTheJob_ToTheBeginningOfTheSucceededList_AndTrimIt()
        {
            var handler = new SucceededStateHandler();
            handler.Apply(_context, _transaction.Object);

            _transaction.Verify(x => x.InsertToList(
                "succeeded", JobId));
            _transaction.Verify(x => x.TrimList(
                "succeeded", 0, 99));
        }
Exemplo n.º 3
0
 public void StateName_ShouldBeEqualToSucceededState()
 {
     var handler = new SucceededStateHandler();
     Assert.Equal(SucceededState.StateName, handler.StateName);
 }