File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Authentication.Test/Helpers Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public AuthenticationHelpersTests()
2424 {
2525 GraphSession . Initialize ( ( ) => new GraphSession ( ) ) ;
2626 GraphSession . Instance . InMemoryTokenCache = new InMemoryTokenCache ( ) ;
27+ GraphSession . Instance . GraphOption = new GraphOption ( ) ;
2728 mockAuthRecord = new MockAuthRecord ( "test" ) ;
2829 mockAuthRecord . SerializeToFile ( ) ;
2930 }
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ public static void InitializeSession()
2929 internal static GraphSession CreateInstance ( IDataStore dataStore = null )
3030 {
3131 IGraphOption graphOptions = null ;
32+ // Try to create directory if it doesn't exist.
33+ Directory . CreateDirectory ( Core . Constants . GraphDirectoryPath ) ;
3234 if ( File . Exists ( Constants . GraphOptionsFilePath ) )
3335 {
3436 // Deserialize the JSON into the GraphOption instance
You can’t perform that action at this time.
0 commit comments