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