File tree Expand file tree Collapse file tree
OnTopic.AspNetCore.Mvc.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public static ActionExecutingContext GetActionExecutingContext(Controller contro
6363 /// <summary>
6464 /// Generates a barebones <see cref="ControllerContext"/> for testing a controller.
6565 /// </summary>
66+ #pragma warning disable CA1024 // Use properties where appropriate
6667 public static ControllerContext GetControllerContext ( ) =>
6768 new (
6869 new ( ) {
@@ -71,6 +72,7 @@ public static ControllerContext GetControllerContext() =>
7172 ActionDescriptor = new ControllerActionDescriptor ( )
7273 }
7374 ) ;
75+ #pragma warning restore CA1024 // Use properties where appropriate
7476
7577 /*==========================================================================================================================
7678 | METHOD: GET TOPIC CONTROLLER
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ public class MethodBasedReferenceViewModel {
2121 private TopicViewModel ? _methodValue ;
2222
2323 public void SetMethod ( TopicViewModel ? methodValue ) => _methodValue = methodValue ;
24+
25+ #pragma warning disable CA1024 // Use properties where appropriate
2426 public TopicViewModel ? GetMethod ( ) => _methodValue ;
27+ #pragma warning restore CA1024 // Use properties where appropriate
2528
2629 } //Class
2730} //Namespace
You can’t perform that action at this time.
0 commit comments