Hi, I would like to test my controller
[Authorize(Policy = "CatalogManager")]
[HttpPut("update")]
public async Task<IActionResult> Update([FromBody] ProductForEditViewModel productForEditViewModel)
{
}
I would like to vérify that only CatalogManager can fire this action. how can I mock [Authorize(Policy = "CatalogManager")] attribute?
Best regards