public async Task <IHttpActionResult> AsyncOperationException()
        {
            var bo = new BusinessObjectAsyncException();

            await bo.OperationAsync();

            return(Ok($"Completed Count: {bo.CompletedCount}"));
        }
Esempio n. 2
0
        public async Task AsyncOperationException()
        {
            var bo = new BusinessObjectAsyncException();

            Exception ex = null;

            try
            {
                await bo.OperationAsync();
            }
            catch (Exception ex_)
            {
                ex = ex_;
            }

            Assert.IsNotNull(ex);
        }