示例#1
0
 /// <summary>
 /// Tests whether the controller attributes contain <see cref="ApiControllerAttribute"/>.
 /// </summary>
 /// <param name="controllerAttributesTestBuilder">
 /// Instance of <see cref="IControllerAttributesTestBuilder"/> type.
 /// </param>
 /// <returns>The same <see cref="IAndControllerAttributesTestBuilder"/>.</returns>
 public static IAndControllerAttributesTestBuilder IndicatingApiController(
     this IControllerAttributesTestBuilder controllerAttributesTestBuilder)
 => controllerAttributesTestBuilder
 .ContainingAttributeOfType <ApiControllerAttribute>();
示例#2
0
 /// <summary>
 /// Tests whether the controller attributes contain <see cref="ControllerAttribute"/>.
 /// </summary>
 /// <param name="controllerAttributesTestBuilder">
 /// Instance of <see cref="IControllerAttributesTestBuilder"/> type.
 /// </param>
 /// <returns>The same <see cref="IAndControllerAttributesTestBuilder"/>.</returns>
 public static IAndControllerAttributesTestBuilder IndicatingControllerExplicitly(
     this IControllerAttributesTestBuilder controllerAttributesTestBuilder)
 => controllerAttributesTestBuilder
 .ContainingAttributeOfType <ControllerAttribute>();