public ApplyStateContextMock()
        {
            StateContextValue = new StateContextMock();
            NewStateValue = Substitute.For<IState>();
            OldStateValue = null;

            _context = new Lazy<ApplyStateContext>(
                () => new ApplyStateContext(
                    StateContextValue.Object,
                    NewStateValue,
                    OldStateValue,
                    Enumerable.Empty<IState>()));
        }
Example #2
0
        public ApplyStateContextMock()
        {
            StateContextValue = new StateContextMock();
            NewStateValue     = Substitute.For <IState>();
            OldStateValue     = null;

            _context = new Lazy <ApplyStateContext>(
                () => new ApplyStateContext(
                    StateContextValue.Object,
                    NewStateValue,
                    OldStateValue,
                    Enumerable.Empty <IState>()));
        }