public LocalMachineScopeStringEncryptor(IEntropyCreator entropyCreator, IDataProtectorFactory dataProtectorFactory) { if (entropyCreator == null) throw new ArgumentNullException("entropyCreator"); if (dataProtectorFactory == null) throw new ArgumentNullException("dataProtectorFactory"); _entropyCreator = entropyCreator; _dataProtectorFactory = dataProtectorFactory; }
public void SetUp() { _entropyCreator = _entropyCreator.Fake(); _dataProtectorFactory = _dataProtectorFactory.Fake(); _sut = new LocalMachineScopeStringEncryptor(_entropyCreator, _dataProtectorFactory); _dataProtector = _dataProtector.Fake(); }
public LocalMachineScopeStringEncryptor(IEntropyCreator entropyCreator, IDataProtectorFactory dataProtectorFactory) { if (entropyCreator == null) { throw new ArgumentNullException("entropyCreator"); } if (dataProtectorFactory == null) { throw new ArgumentNullException("dataProtectorFactory"); } _entropyCreator = entropyCreator; _dataProtectorFactory = dataProtectorFactory; }