Example #1
0
        public async Task Init()
        {
            this.credentialsProvider = new MockCredentialProvider();
            foreach (IDatabaseCandidate candidate in this.storedData)
            {
                await this.credentialsProvider.TryStoreRawKeyAsync(candidate.FileName, this.storedKey);
            }

            this.viewModel = new SavedCredentialsViewModel(this.credentialsProvider);
            await this.viewModel.ActivateAsync();
        }
Example #2
0
 /// <summary>
 /// Creates an instance of the dialog with an overridden prompt blurb.
 /// </summary>
 /// <param name=""></param>
 /// <param name="blurb">Text to display at the top of the dialog.</param>
 public PasswordManagementDialog(ISavedCredentialsViewModel viewModel, string blurb)
     : this(viewModel)
 {
     this.blurb.Text = blurb;
 }
Example #3
0
 /// <summary>
 /// Creates an instance of the dialog with a default text blurb.
 /// </summary>
 /// <param name="viewModel"></param>
 public PasswordManagementDialog(ISavedCredentialsViewModel viewModel)
 {
     ViewModel = viewModel ?? throw new ArgumentNullException(nameof(viewModel));
     InitializeComponent();
 }