コード例 #1
0
 public Task <int> Intercept(InterceptorExecutionDelegate next,
                             string interceptorOpt,
                             [Option(AssignToExecutableSubcommands = true)] string inheritedOpt)
 {
     TestOutputs.Capture(new InterceptResult {
         InheritedOpt = inheritedOpt, InterceptorOpt = interceptorOpt
     });
     return(next());
 }
コード例 #2
0
 public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My parent is {ParentName ?? "null"}. My grandparent is {GrandParentName}.");
コード例 #3
0
 public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My parent is {ParentName}. My child is {MyChild?.Name ?? "null"}");
コード例 #4
0
 public void Greet() => TestOutputs.Capture($"Hello, my name is {Name}. My child is {Child?.Name ?? "null"}. My grandchild is {GrandChild?.Name ?? "null"}.");
コード例 #5
0
 public void Do(int arg1, [Option] int opt1)
 {
     TestOutputs.Capture(new DoResult {
         Arg1 = arg1, Opt1 = opt1
     });
 }
コード例 #6
0
 public void Do2(ArgModel2 model)
 {
     TestOutputs.Capture(model);
 }
コード例 #7
0
 public void Do1(ArgModel1 model)
 {
     TestOutputs.Capture(model);
 }