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 @@ -34,7 +34,7 @@ public class ValidateTopicAttributeTest {
3434 /// <summary>
3535 /// Given a <see cref="Controller"/>, generates a barebones <see cref="ActionExecutingContext"/> for testing.
3636 /// </summary>
37- public ActionExecutingContext GetActionExecutingContext ( Controller controller ) {
37+ public static ActionExecutingContext GetActionExecutingContext ( Controller controller ) {
3838
3939 var modelState = new ModelStateDictionary ( ) ;
4040
@@ -62,7 +62,7 @@ public ActionExecutingContext GetActionExecutingContext(Controller controller) {
6262 /// <summary>
6363 /// Generates a barebones <see cref="ControllerContext"/> for testing a controller.
6464 /// </summary>
65- public ControllerContext GetControllerContext ( ) =>
65+ public static ControllerContext GetControllerContext ( ) =>
6666 new ControllerContext (
6767 new ActionContext ( ) {
6868 HttpContext = new DefaultHttpContext ( ) ,
@@ -77,7 +77,7 @@ public ControllerContext GetControllerContext() =>
7777 /// <summary>
7878 /// Generates a barebones <see cref="ControllerContext"/> for testing a controller.
7979 /// </summary>
80- public TopicController GetTopicController ( Topic topic ) =>
80+ public static TopicController GetTopicController ( Topic topic ) =>
8181 new TopicController (
8282 new DummyTopicRepository ( ) ,
8383 new DummyTopicMappingService ( )
You can’t perform that action at this time.
0 commit comments