public IApiResponse Get500KoUnhandledException() { var response = new Ok.Response(); var num = 1; var den = 0; var res = num / den; return(response); }
public IApiResponse Get200OkResponseWithException() { var response = new Ok.Response(); try { throw new Exception("Fake exception"); } catch (Exception ex) { response.SetException(ex); } return(response); }