关于[Creating and Testing ASP.NET Core Filter Attributes]的摘要:
In this article, we will start by investigating the difference between the implementation of synchronous and asynchronous filters. Then, we will see the questions that can guide us to make the appropriate decisions when implementing filter attributes. Finally, we will create two filter attributes (as examples) and unit tests for some of their scenarios-behaviour.
原文地址: https://www.dotnetnakama.com/blog/creating-and-testing-asp-dotnet-core-filter-attributes/