public void Initialize() { decrypter = MockRepository.GenerateMock<ICaesarShiftDecrypter>(); observableText = MockRepository.GenerateMock<IObservableText>(); target = new CaesarShiftSetupViewModel(decrypter, observableText); }
public CaesarShiftSetupViewModel(ICaesarShiftDecrypter decrypter, IObservableText encryptedText) { this.decrypter = decrypter; this.encryptedText = encryptedText; ShiftUpCommand = new SimpleDelegateCommand(() => Shift++); ShiftDownCommand = new SimpleDelegateCommand(() => Shift--); LoadSampleTextCommand = new SimpleDelegateCommand(LoadSampleText); }