public async Task DeleteBroadcasterConfigAsync_NullOrEmpty(string broadcaster)
        {
            const int channelId = 123;

            _Log.Setup(s => s.LogInformation($"Deleting broadcaster config for channel '{channelId}'."));
            _Context.Setup(s => s.DeleteBroadcasterConfigAsync(channelId)).Returns(Task.CompletedTask);
            _Log.Setup(s => s.LogInformation($"Deleted broadcaster config for channel '{channelId}'."));
            var   task = _Helper.DeleteBroadcasterConfigAsync(channelId, broadcaster);
            await task;

            _Log.VerifyAll();
            _Context.VerifyAll();
            Assert.That(task.IsCompletedSuccessfully, Is.True);
        }
        public static async Task <IActionResult> Run([HttpTrigger(AuthorizationLevel.Function, "delete", Route = "channels/{channelid:decimal}/broadcasters/{broadcaster?}")] HttpRequest req, decimal channelId, string broadcaster, ILogger log)
        {
            var connectionString = Environment.GetEnvironmentVariable("TopTwitchClipBotConnectionString");
            var logWrapper       = new LoggerWrapper(log);
            ChannelConfigContainer result;

            using (var context = new TopTwitchClipBotContext(connectionString))
            {
                var helper = new DeleteBroadcasterConfigHelper(logWrapper, context);
                result = await helper.DeleteBroadcasterConfigAsync(channelId, broadcaster);
            }
            return(new OkObjectResult(result));
        }