Skip to content

Commit 129f791

Browse files
committed
Converted non-stateful methods to static
1 parent 0dc889d commit 129f791

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OnTopic.AspNetCore.Mvc.Tests/ValidateTopicAttributeTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)