Skip to content

Commit 24f6a87

Browse files
committed
#290 - Make Calling more accessible Fixed method documentation
1 parent 924d4a2 commit 24f6a87

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MyTested.AspNetCore.Mvc.Controllers/MyController.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{
33
using System;
44
using System.Linq.Expressions;
5+
using Builders.Contracts.Actions;
56
using Builders.Contracts.Controllers;
67
using Builders.Controllers;
78
using Internal.Application;
89
using Internal.TestContexts;
9-
using MyTested.AspNetCore.Mvc.Builders.Contracts.Actions;
1010

1111
/// <summary>
1212
/// Provides methods to specify an ASP.NET Core MVC controller test case.
@@ -66,13 +66,13 @@ public static IControllerBuilder<TController> Instance(TController controller)
6666
public static IControllerBuilder<TController> Instance(Func<TController> construction)
6767
=> new MyController<TController>(construction);
6868

69-
7069
/// <summary>
71-
/// Starts a controller test.
70+
/// Indicates which action should be invoked and tested.
7271
/// </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>
7474
/// <returns>Test builder of <see cref="IActionResultTestBuilder{TActionResult}"/> type.</returns>
7575
public new static IActionResultTestBuilder<TActionResult> Calling<TActionResult>(Expression<Func<TController, TActionResult>> actionCall)
76-
=> Instance((TController)null).Calling(actionCall);
76+
=> Instance().Calling(actionCall);
7777
}
7878
}

0 commit comments

Comments
 (0)