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