public static List <ExceptionOrReturn <string> > ResponsesSource()
 {
     return(new List <ExceptionOrReturn <string> > {
         ExceptionOrReturnFactory.Exception <string>(new ArgumentException()),
         ExceptionOrReturnFactory.Return("Some return")
     });
 }
Beispiel #2
0
 internal override IInvocationResponses <ExceptionOrReturn <string> > CreateInvocationResponses()
 {
     return(new ExceptionsOrReturns <string> {
         ExceptionOrReturnFactory.Return("1"), ExceptionOrReturnFactory.Exception <string>(new Exception())
     });
 }