public static void TestFixtureSetup() { _memoryCache = MemoryCache.Default; _cacheProvider = new TestCacheProvider(_memoryCache); // Setup App AAD Client _appConfig = new AADGraphHandler.AADGraphHandler.AADGraphHandlerConfigurationForApp { TenantId = TenantId, GraphServiceRootUri = new Uri(GraphServiceRootUri), AuthorityServiceRootUri = new Uri(AuthorityServiceRootUri), TenantDisplayName = TenantDisplayName, AppClientId = ApiAppClientId, AppClientSecret = ApiAppClientSecret, CacheProvider = _cacheProvider }; _aadAppGraphHandler = new AADGraphHandler.AADGraphHandler(_appConfig); }
public void TestFixtureTearDown() { _appConfig = null; _aadAppGraphHandler.Dispose(); _aadAppGraphHandler = null; }