@@ -39,22 +39,23 @@ public void RunPowerShellTest(params string[] scripts)
39
39
var callingClassType = TestUtilities . GetCallingClass ( 2 ) ;
40
40
var mockName = TestUtilities . GetCurrentMethodName ( 2 ) ;
41
41
42
+ Dictionary < string , string > d = new Dictionary < string , string > ( ) ;
43
+ d . Add ( "Microsoft.Features" , null ) ;
44
+ d . Add ( "Microsoft.Authorization" , null ) ;
45
+ var providersToIgnore = new Dictionary < string , string >
46
+ {
47
+ { "Microsoft.Azure.Management.Resources.ResourceManagementClient" , "2017-05-10" }
48
+ } ;
49
+ HttpMockServer . Matcher = new PermissiveRecordMatcherWithApiExclusion ( false , d , providersToIgnore ) ;
50
+ HttpMockServer . RecordsDirectory = Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , "SessionRecords" ) ;
51
+
42
52
using ( var context = MockContext . Start ( callingClassType , mockName ) )
43
53
{
44
54
SetupManagementClients ( context ) ;
45
55
var callingClassName = callingClassType
46
56
. Split ( new [ ] { "." } , StringSplitOptions . RemoveEmptyEntries )
47
57
. Last ( ) ;
48
58
49
- Dictionary < string , string > d = new Dictionary < string , string > ( ) ;
50
- d . Add ( "Microsoft.Features" , null ) ;
51
- d . Add ( "Microsoft.Authorization" , null ) ;
52
- var providersToIgnore = new Dictionary < string , string >
53
- {
54
- { "Microsoft.Azure.Management.Resources.ResourceManagementClient" , "2017-05-10" }
55
- } ;
56
- HttpMockServer . Matcher = new PermissiveRecordMatcherWithApiExclusion ( false , d , providersToIgnore ) ;
57
-
58
59
helper . SetupEnvironment ( AzureModule . AzureResourceManager ) ;
59
60
helper . SetupModules ( AzureModule . AzureResourceManager ,
60
61
helper . RMProfileModule ,
0 commit comments