public void Unapply_ShouldRemoveTheJob_FromTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Unapply(_context.Object, _transaction.Object); _transaction.Verify(x => x.RemoveFromSet("processing", JobId)); }
public void Apply_ShouldAddTheJob_ToTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Apply(_context.Object, _transaction); _transaction.Received().AddToSet("processing", JobId, Arg.Any<double>()); }
public void Apply_ShouldAddTheJob_ToTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Apply(_context.Object, _transaction.Object); _transaction.Verify(x => x.AddToSet( "processing", JobId, It.IsAny<double>())); }
public void Apply_ShouldAddTheJob_ToTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Apply(_context.Object, _transaction); _transaction.Received().AddToSet("processing", JobId, Arg.Any <double>()); }
public void Unapply_ShouldRemoveTheJob_FromTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Unapply(_context.Object, _context.Transaction); _context.Transaction.Received().RemoveFromSet("processing", JobId); }
public void Apply_ShouldAddTheJob_ToTheProcessingSet() { var handler = new ProcessingStateHandler(); handler.Apply(_context.Object, _transaction.Object); _transaction.Verify(x => x.AddToSet( "processing", JobId, It.IsAny <double>())); }
public void StateName_ShouldBeEqualToProcessingState() { var handler = new ProcessingStateHandler(); Assert.Equal(ProcessingState.StateName, handler.StateName); }