Esempio n. 1
0
        public ElectStateContextMock()
        {
            ApplyContext = new ApplyStateContextMock();

            _context = new Lazy <ElectStateContext>(
                () => new ElectStateContext(ApplyContext.Object));
        }
        public ElectStateContextMock()
        {
            ApplyContext = new ApplyStateContextMock();

            _context = new Lazy<ElectStateContext>(
                () => new ElectStateContext(ApplyContext.Object));
        }
Esempio n. 3
0
        private ApplyStateContext CreatApplyStateContext(IState newState)
        {
            var context = new ApplyStateContextMock();

            context.BackgroundJob.Id = JobId;
            context.Transaction      = _transaction;
            context.NewStateObject   = newState;
            return(context.Object);
        }