public TestsFixtureWithCacheCreate() { HttpMockServer.RecordsDirectory = GetSessionsDirectoryPath(); _context = new MockContext(); MockContext.Start(this.GetType().FullName, ".ctor"); try { _redisCacheManagementHelper = new RedisCacheManagementHelper(this, _context); _redisCacheManagementHelper.TryRegisterSubscriptionForResource(); ResourceGroupName = TestUtilities.GenerateName("RedisGetList"); RedisCacheName = TestUtilities.GenerateName("RedisGetList"); _redisCacheManagementHelper.TryCreateResourceGroup(ResourceGroupName, RedisCacheManagementHelper.Location); _redisCacheManagementHelper.TryCreatingCache(ResourceGroupName, RedisCacheName, RedisCacheManagementHelper.Location); } catch (Exception) { Cleanup(); throw; } finally { HttpMockServer.Flush(); } }
public TestsFixtureWithCacheCreate() { TestUtilities.StartTest(); try { UndoContext.Current.Start(); RedisCacheManagementHelper redisCacheManagementHelper = new RedisCacheManagementHelper(this); redisCacheManagementHelper.TryRegisterSubscriptionForResource(); ResourceGroupName = TestUtilities.GenerateName("hydra1"); redisCacheManagementHelper.TryCreateResourceGroup(ResourceGroupName, Location); redisCacheManagementHelper.TryCreatingCache(ResourceGroupName, RedisCacheName, Location); } catch (Exception) { Cleanup(); throw; } finally { TestUtilities.EndTest(); } }
public TestsFixtureWithCacheCreate() { TestUtilities.StartTest(); try { UndoContext.Current.Start(); RedisCacheManagementHelper redisCacheManagementHelper = new RedisCacheManagementHelper(this); redisCacheManagementHelper.TryRegisterSubscriptionForResource(); ResourceGroupName = TestUtilities.GenerateName("hydra1"); redisCacheManagementHelper.TryCreateResourceGroup(ResourceGroupName, Location); redisCacheManagementHelper.TryCreatingCache(ResourceGroupName, RedisCacheName, Location); } catch (Exception) { Cleanup(); throw; } finally { TestUtilities.EndTest(); } }