Пример #1
0
        public FailedStateHandlerFacts()
        {
            _context = new ApplyStateContextMock(JobId);
            _context.NewStateValue = new FailedState(new InvalidOperationException());

            _transaction = new Mock <IWriteOnlyTransaction>();
        }
        public SucceededStateHandlerFacts()
        {
            _context = new ApplyStateContextMock();
            _context.StateContextValue.JobIdValue = JobId;
            _context.NewStateValue = new SucceededState(null, 11, 123);

            _transaction = new Mock<IWriteOnlyTransaction>();
        }
        public DeletedStateHandlerFacts()
        {
            _context = new ApplyStateContextMock();
            _context.StateContextValue.JobIdValue = JobId;
            _context.NewStateValue = new DeletedState();

            _transaction = new Mock <IWriteOnlyTransaction>();
        }
        public SucceededStateHandlerFacts()
        {
            _context = new ApplyStateContextMock();
            _context.StateContextValue.JobIdValue = JobId;
            _context.NewStateValue = new SucceededState(null, 11, 123);

            _transaction = new Mock <IWriteOnlyTransaction>();
        }
        public DeletedStateHandlerFacts()
        {
            _context = new ApplyStateContextMock();
            _context.StateContextValue.JobIdValue = JobId;
            _context.NewStateValue = new DeletedState();

            _transaction = new Mock<IWriteOnlyTransaction>();
        }
        public ProcessingStateHandlerFacts()
        {
            _context = new ApplyStateContextMock();
            _context.StateContextValue.JobIdValue = JobId;
            _context.NewStateValue = new ProcessingState("server", 1);

            _transaction = new Mock <IWriteOnlyTransaction>();
        }
 public SucceededStateHandlerFacts()
 {
     _context     = new ApplyStateContextMock(JobId);
     _transaction = new Mock <IWriteOnlyTransaction>();
 }
Пример #8
0
 public ProcessingStateHandlerFacts()
 {
     _context     = new ApplyStateContextMock(JobId);
     _transaction = new Mock <IWriteOnlyTransaction>();
 }