Skip to content

Commit

Permalink
Fix Context (Azure#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebecca-makar authored Mar 16, 2020
1 parent b5bc02d commit 631c54e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public class HpcCacheTestContext : IDisposable
/// <param name="suiteObject">Class object.</param>
/// <param name="methodName">Method name of the calling method.</param>
public HpcCacheTestContext(
object suiteObject,
string suiteObject,
[System.Runtime.CompilerServices.CallerMemberName]
string methodName = ".ctor")
{
this.mockContext = MockContext.Start(suiteObject.GetType().Name, methodName);
this.mockContext = MockContext.Start(suiteObject, methodName);
this.RegisterSubscriptionForResource("Microsoft.StorageCache");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public class HpcCacheTestFixture : IDisposable
/// </summary>
public HpcCacheTestFixture()
{
using (this.Context = new HpcCacheTestContext(this))
using (this.Context = new HpcCacheTestContext(this.GetType().Name))
{
this.Context = new HpcCacheTestContext(this);
this.Context = new HpcCacheTestContext(this.GetType().Name);
try
{
StorageCacheManagementClient storagecacheMgmtClient = this.Context.GetClient<StorageCacheManagementClient>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public class StorageAccountFixture : IDisposable
public StorageAccountFixture(HpcCacheTestFixture fixture)
{
this.fixture = fixture;
using (this.Context = new HpcCacheTestContext(this))
using (this.Context = new HpcCacheTestContext(this.GetType().Name))
{
this.Context = new HpcCacheTestContext(this);
this.Context = new HpcCacheTestContext(this.GetType().Name);
this.StorageTarget = this.AddClfsStorageTarget(this.Context);
Match clfsTargetMatch = ClfsTargetRegex.Match(this.StorageTarget.Clfs.Target);
var storageAccountName = clfsTargetMatch.Groups["StorageAccountName"].Value;
Expand Down

0 comments on commit 631c54e

Please sign in to comment.