public async Task InvokeAsync_WithTimeoutsIgnored_TimeoutShouldElapseButWithoutAnException()
 {
     ConfigProvider.Instance.Set(IgnoreTimeoutsKey, true);
     var command = new IgnoredTimeoutsCommand();
     // Shouln't get an exception here.
     await command.InvokeAsync(); 
     ConfigProvider.Instance.Set(IgnoreTimeoutsKey, false);
 }
Пример #2
0
        public async Task InvokeAsync_WithTimeoutsIgnored_TimeoutShouldElapseButWithoutAnException()
        {
            ConfigProvider.Instance.Set(IgnoreTimeoutsKey, true);
            var command = new IgnoredTimeoutsCommand();
            // Shouln't get an exception here.
            await command.InvokeAsync();

            ConfigProvider.Instance.Set(IgnoreTimeoutsKey, false);
        }