protected override Task InternalExecuteAsync(TestInputData testInputData) { return(LanguageRunner.ExecuteAsync( new JavaLanguageExecutor("TestConsoleApp"), testInputData, CancellationToken.None)); }
protected override Task InternalExecuteAsync(TestInputData testInputData) { return(LanguageRunner.ExecuteAsync( new NodeLanguageExecutor(), testInputData, default)); }
protected override Task InternalExecuteAsync(TestInputData testInputData) { string scriptFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestMsalPython.py"); return(LanguageRunner.ExecuteAsync( new PythonLanguageExecutor(scriptFilePath), testInputData, CancellationToken.None)); }
protected override Task InternalExecuteAsync(TestInputData testInputData) { // TODO: figure out how we setup the public main program, compile it from .java to .class, and execute it // May need to have the JavaLanguageExecutor take a .java file and then have a separate compile // step on that class to build the java code and run it. string javaClassFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "SomeJavaClass.class"); return(LanguageRunner.ExecuteAsync( new JavaLanguageExecutor(javaClassFilePath), testInputData, CancellationToken.None)); }
protected override async Task <CacheExecutorResults> InternalExecuteAsync(CommandLineOptions options) { var v1App = PreRegisteredApps.CommonCacheTestV1; string resource = PreRegisteredApps.MsGraph; string scope = resource + "/user.read"; CommonCacheTestUtils.EnsureCacheFileDirectoryExists(); string scriptFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TestMsalPython.py"); return(await LanguageRunner.ExecuteAsync( new PythonLanguageExecutor(scriptFilePath), v1App.ClientId, v1App.Authority, scope, options.Username, options.UserPassword, CommonCacheTestUtils.MsalV3CacheFilePath, CancellationToken.None).ConfigureAwait(false)); }
protected override async Task <CacheExecutorResults> InternalExecuteAsync(CommandLineOptions options) { var v1App = PreRegisteredApps.CommonCacheTestV1; string resource = PreRegisteredApps.MsGraph; string scope = resource + "/user.read"; CommonCacheTestUtils.EnsureCacheFileDirectoryExists(); // TODO: figure out how we setup the public main program, compile it from .java to .class, and execute it // May need to have the JavaLanguageExecutor take a .java file and then have a separate compile // step on that class to build the java code and run it. string javaClassFilePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "SomeJavaClass.class"); return(await LanguageRunner.ExecuteAsync( new JavaLanguageExecutor(javaClassFilePath), v1App.ClientId, v1App.Authority, scope, options.Username, options.UserPassword, CommonCacheTestUtils.MsalV3CacheFilePath, CancellationToken.None).ConfigureAwait(false)); }