public SucceededStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.Job.Id = JobId; _context.NewStateValue = CreateSucceededState(); _transaction = Substitute.For <IWriteOnlyTransaction>(); }
public FailedStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.Job.Id = JobId; _context.NewStateValue = new FailedState(new InvalidOperationException()); }
public SucceededStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new SucceededState(null, 11, 123); _transaction = Substitute.For <IWriteOnlyTransaction>(); }
public ProcessingStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new ProcessingState("server", 1); _transaction = Substitute.For <IWriteOnlyTransaction>(); }
public FailedStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new FailedState(new InvalidOperationException()); _transaction = Substitute.For <IWriteOnlyTransaction>(); }
public SucceededStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new SucceededState(null, 11, 123); _transaction = Substitute.For<IWriteOnlyTransaction>(); }
public FailedStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new FailedState(new InvalidOperationException()); _transaction = Substitute.For<IWriteOnlyTransaction>(); }
public DeletedStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new DeletedState(); _transaction = Substitute.For <IWriteOnlyTransaction>(); }
public DeletedStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new DeletedState(); _transaction = Substitute.For<IWriteOnlyTransaction>(); }
public ProcessingStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.StateContextValue.JobIdValue = JobId; _context.NewStateValue = new ProcessingState("server", 1); _transaction = Substitute.For<IWriteOnlyTransaction>(); }
public ProcessingStateHandlerFacts() { _context = new ApplyStateContextMock(); _context.Job.Id = JobId; _context.NewStateValue = CreateProcessingState(); }