コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PassPhraseViewModel" /> class.
        /// </summary>
        /// <param name="encrypter">The encrypter.</param>
        public PassPhraseViewModel(IConnectionSettingsEncrypter encrypter)
        {
            Ensure.That(encrypter).IsNotNull();

            _encrypter = encrypter;
            _validator = new PassPhraseViewModelValidator();
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConnectionSettingsStore" /> class.
        /// </summary>
        /// <param name="serializer">The serializer.</param>
        /// <param name="encrypter">The encrypter.</param>
        /// <param name="fileStore">The file store.</param>
        public ConnectionSettingsStore(IConnectionSettingsSerializer serializer, IConnectionSettingsEncrypter encrypter, IFileStore fileStore)
        {
            Ensure.That(serializer).IsNotNull();
            Ensure.That(encrypter).IsNotNull();
            Ensure.That(fileStore).IsNotNull();

            _serializer = serializer;
            _encrypter  = encrypter;
            _fileStore  = fileStore;
        }