File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/MyTested.AspNetCore.Mvc.Controllers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
using System ;
4
4
using System . Linq . Expressions ;
5
+ using Builders . Contracts . Actions ;
5
6
using Builders . Contracts . Controllers ;
6
7
using Builders . Controllers ;
7
8
using Internal . Application ;
8
9
using Internal . TestContexts ;
9
- using MyTested . AspNetCore . Mvc . Builders . Contracts . Actions ;
10
10
11
11
/// <summary>
12
12
/// Provides methods to specify an ASP.NET Core MVC controller test case.
@@ -66,13 +66,13 @@ public static IControllerBuilder<TController> Instance(TController controller)
66
66
public static IControllerBuilder < TController > Instance ( Func < TController > construction )
67
67
=> new MyController < TController > ( construction ) ;
68
68
69
-
70
69
/// <summary>
71
- /// Starts a controller test .
70
+ /// Indicates which action should be invoked and tested .
72
71
/// </summary>
73
- /// <param name="actionCall">Construction function returning the instantiated controller.</param>
72
+ /// <typeparam name="TActionResult">Type of result from action.</typeparam>
73
+ /// <param name="actionCall">Method call expression indicating invoked action.</param>
74
74
/// <returns>Test builder of <see cref="IActionResultTestBuilder{TActionResult}"/> type.</returns>
75
75
public new static IActionResultTestBuilder < TActionResult > Calling < TActionResult > ( Expression < Func < TController , TActionResult > > actionCall )
76
- => Instance ( ( TController ) null ) . Calling ( actionCall ) ;
76
+ => Instance ( ) . Calling ( actionCall ) ;
77
77
}
78
78
}
You can’t perform that action at this time.
0 commit comments