Skip to content

Commit ebd2937

Browse files
committed
Changed argument from type Controller to ControllerBase.
... In an attempt to adhere to Postel's law.
1 parent da5cca2 commit ebd2937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestStack.FluentMvcTesting/ControllerExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static ControllerResultTest<T> WithCallToChild<T, TAction>(this T control
6262
return controller.WithCallTo(actionCall);
6363
}
6464

65-
public static void ShouldHaveTempDataProperty(this Controller controller, string key, object value = null)
65+
public static void ShouldHaveTempDataProperty(this ControllerBase controller, string key, object value = null)
6666
{
6767
var actual = controller.TempData[key];
6868

@@ -87,7 +87,7 @@ public static void ShouldHaveTempDataProperty(this Controller controller, string
8787
}
8888
}
8989

90-
public static void ShouldHaveTempDataProperty<TValue>(this Controller controller, string key, Func<TValue, bool> predicate)
90+
public static void ShouldHaveTempDataProperty<TValue>(this ControllerBase controller, string key, Func<TValue, bool> predicate)
9191
{
9292
var actual = controller.TempData[key];
9393

0 commit comments

Comments
 (0)