private async Task <TResult> CallAsync <TResult>(Type programType, string methodName, Action <TaskCompletionSource <TResult> > setTaskSource) { IDictionary <string, object> arguments = null; return(await FunctionalTest.CallAsync <TResult>(b => ConfigureStorage(b), programType, programType.GetMethod(methodName), arguments, setTaskSource)); }
private async Task <TResult> CallQueueTriggerAsync <TResult>(object message, Type programType, Action <TaskCompletionSource <TResult> > setTaskSource) { var method = programType.GetMethod("Run"); Assert.NotNull(method); var result = await FunctionalTest.CallAsync <TResult>(b => ConfigureQueues(b), programType, method, new Dictionary <string, object> { { "message", message } }, setTaskSource); return(result); }
private async Task CallAsync(Type programType, string methodName, IDictionary <string, object> arguments, params Type[] customExtensions) { await FunctionalTest.CallAsync(b => ConfigureStorage(b), programType, programType.GetMethod(methodName), arguments, customExtensions); }
private async Task CallAsync(Type programType, string methodName, params Type[] customExtensions) { await FunctionalTest.CallAsync(b => ConfigureStorage(b), programType, programType.GetMethod(methodName), null, customExtensions); }