Exemplo n.º 1
0
 public void TestInitialize()
 {
     TestCommon.ResetInternalStaticCaches();
     _credentialPathManager =
         new FileSystemCredentialPathManager(TestCommon.CreateDefaultServiceBundle().PlatformProxy.CryptographyManager);
     _mockFileIO    = new MockFileIO();
     _storageWorker = new PathStorageWorker(_mockFileIO, _credentialPathManager);
 }
        public override void TestInitialize()
        {
            base.TestInitialize();

            var serviceBundle = TestCommon.CreateDefaultServiceBundle();

            _cachePathStorage      = new InMemoryCachePathStorage();
            _credentialPathManager = new FileSystemCredentialPathManager(serviceBundle.PlatformProxy.CryptographyManager);
            _storageWorker         = new PathStorageWorker(_cachePathStorage, _credentialPathManager);
            _storageManager        = new StorageManager(serviceBundle.PlatformProxy, _storageWorker);
        }
Exemplo n.º 3
0
        public void TestInitialize()
        {
            _tokenCache = new TokenCacheV2();

            _cachePathStorage      = new InMemoryCachePathStorage();
            _credentialPathManager = new FileSystemCredentialPathManager();
            _storageWorker         = new PathStorageWorker(_cachePathStorage, _credentialPathManager);
            _storageManager        = new StorageManager(_storageWorker);

            _tokenCache.BindToStorageManager(_storageManager);
        }