public async Task <IActionResult> DeletePublishedProviders( [FromRoute] string fundingStreamId, [FromRoute] string fundingPeriodId) { if (_featureToggle.IsDeletePublishedProviderForbidden()) { return(Forbid()); } await _deletePublishedProvidersService.QueueDeletePublishedProvidersJob(fundingStreamId, fundingPeriodId, Request.GetCorrelationId()); return(Ok()); }
private void GivenThatDeletingPublishedProvidersIsForbidden() { _featureToggle .IsDeletePublishedProviderForbidden() .Returns(true); }