public MockRuntime(string handler, string body)
 {
     context  = new MockLambdaContext(handler, body);
     InitData = new InitData
     {
         Handler              = handler,
         InvokeId             = context.RequestId,
         SuppressUserCodeInit = false,
         ErrorCode            = null
     };
     invoked = false;
 }
Exemple #2
0
 public MockRuntime(string handler, string body)
 {
     context  = new MockLambdaContext(handler, body);
     InitData = new InitData
     {
         Handler              = handler,
         InvokeId             = context.RequestId,
         SuppressUserCodeInit = true,
         ErrorCode            = null
     };
     invoked        = false;
     client.Timeout = Timeout.InfiniteTimeSpan;
 }