コード例 #1
0
 public static ICommandHandler <TCommand, TResult> GetHandler <TCommand, TResult>(this MockRegister register)
 {
     return(register.GetMock <ICommandHandler <TCommand, TResult> >());
 }
コード例 #2
0
 public static object GetHandler(this MockRegister register, Type commandType, Type resultType)
 {
     return(register.GetMock(typeof(ICommandHandler <,>).MakeGenericType(commandType, resultType)));
 }