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