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));
        }
예제 #2
0
        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);
        }
예제 #3
0
 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);
 }
예제 #4
0
 private async Task CallAsync(Type programType, string methodName, params Type[] customExtensions)
 {
     await FunctionalTest.CallAsync(b => ConfigureStorage(b), programType, programType.GetMethod(methodName), null, customExtensions);
 }