public void Unapply_ShouldRemoveTheJob_FromTheSucceededList() { var handler = new SucceededStateHandler(); handler.Unapply(_context, _transaction.Object); _transaction.Verify(x => x.RemoveFromList("succeeded", JobId)); }
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)); }
public void StateName_ShouldBeEqualToSucceededState() { var handler = new SucceededStateHandler(); Assert.Equal(SucceededState.StateName, handler.StateName); }