public void PasswordOverlayTranslation_FormatInvalidPasswordMessage_SetsTextWithActionName() { var viewModel = CreateViewModel(); var pwOVtr = new PasswordOverlayTranslation(); var interaction = new PasswordOverlayInteraction(PasswordMiddleButton.Remove, "", pwOVtr.FormatInvalidPasswordMessage("ActionName"), false); var sometext = "Invalid password for 'ActionName'"; Assert.AreEqual(sometext, interaction.PasswordDescription); }
public ProgressViewModel(IJobRunner jobRunner, IInteractionRequest interactionRequest, IDispatcher dispatcher, ITranslationUpdater translationUpdater, InteractiveOutputFileMover outputFileMover) : base(translationUpdater) { _jobRunner = jobRunner; _interactionRequest = interactionRequest; _dispatcher = dispatcher; _outputFileMover = outputFileMover; translationUpdater.RegisterAndSetTranslation(tf => _passwordOverlayTranslation = tf.UpdateOrCreateTranslation(_passwordOverlayTranslation)); }