public async Task <IHttpActionResult> AsyncOperationException() { var bo = new BusinessObjectAsyncException(); await bo.OperationAsync(); return(Ok($"Completed Count: {bo.CompletedCount}")); }
public async Task AsyncOperationException() { var bo = new BusinessObjectAsyncException(); Exception ex = null; try { await bo.OperationAsync(); } catch (Exception ex_) { ex = ex_; } Assert.IsNotNull(ex); }