public EditableTextBox(ITextBoxWrapper input, ISwappableTextboxStrategy swappableTextboxStrategy, EditableStatus regularMode) { _textBox = input; TrueControl = _textBox.TrueControl; _swappableTextboxStrategy = swappableTextboxStrategy; _status = regularMode; if (_status == EditableStatus.Regular) { EnterRegularMode(); } else { EnterEditMode(); } }
public void Setup(EditableStatus status) { _textBoxWrapper = A.Fake <ITextBoxWrapper>(); _swappableTextboxStrategy = A.Fake <ISwappableTextboxStrategy>(); _editableTextBox = new EditableTextBox(_textBoxWrapper, _swappableTextboxStrategy, status); }
public IEditableTextBox Create(ITextBoxWrapper input, ISwappableTextboxStrategy swappableTextboxStrategy, EditableStatus regularMode = EditableStatus.Regular) { return(new EditableTextBox(input, swappableTextboxStrategy, regularMode)); }