コード例 #1
0
 public LocalMachineScopeStringEncryptor(IEntropyCreator entropyCreator, IDataProtectorFactory dataProtectorFactory)
 {
     if (entropyCreator == null) throw new ArgumentNullException("entropyCreator");
       if (dataProtectorFactory == null) throw new ArgumentNullException("dataProtectorFactory");
       _entropyCreator = entropyCreator;
       _dataProtectorFactory = dataProtectorFactory;
 }
コード例 #2
0
        public void SetUp()
        {
            _entropyCreator = _entropyCreator.Fake();
              _dataProtectorFactory = _dataProtectorFactory.Fake();
              _sut = new LocalMachineScopeStringEncryptor(_entropyCreator, _dataProtectorFactory);

              _dataProtector = _dataProtector.Fake();
        }
コード例 #3
0
        public void SetUp()
        {
            _entropyCreator       = _entropyCreator.Fake();
            _dataProtectorFactory = _dataProtectorFactory.Fake();
            _sut = new LocalMachineScopeStringEncryptor(_entropyCreator, _dataProtectorFactory);

            _dataProtector = _dataProtector.Fake();
        }
コード例 #4
0
 public LocalMachineScopeStringEncryptor(IEntropyCreator entropyCreator, IDataProtectorFactory dataProtectorFactory)
 {
     if (entropyCreator == null)
     {
         throw new ArgumentNullException("entropyCreator");
     }
     if (dataProtectorFactory == null)
     {
         throw new ArgumentNullException("dataProtectorFactory");
     }
     _entropyCreator       = entropyCreator;
     _dataProtectorFactory = dataProtectorFactory;
 }