public async Task WithExceptionCustomizer_NoException(bool sync) { var response = new SimpleResponse(); var call = FakeApiCall.Create <SimpleRequest, SimpleResponse>((req, options) => response); bool called = false; call = call.WithExceptionCustomizer(original => { called = true; return(null); }); var request = new SimpleRequest(); var actualResponse = sync ? call.Sync(request, null) : await call.Async(request, null); Assert.Same(response, actualResponse); Assert.False(called); }
internal ApiCall <RunQueryRequest, RunQueryResponse> CreateApiCall() { return(FakeApiCall.Create <RunQueryRequest, RunQueryResponse>(RunQuery)); }