4
4
using System . Linq . Expressions ;
5
5
using System . Threading . Tasks ;
6
6
using Actions ;
7
- using Base ;
8
- using Microsoft . AspNetCore . Mvc ;
9
7
10
8
/// <summary>
11
9
/// Used for building the controller which will be tested.
12
10
/// </summary>
13
11
/// <typeparam name="TController">Class representing ASP.NET Core MVC controller.</typeparam>
14
- public interface IControllerBuilder < TController > : IBaseTestBuilderWithComponentBuilder < IAndControllerBuilder < TController > >
12
+ public interface IControllerBuilder < TController > : IBaseControllerBuilder < TController , IAndControllerBuilder < TController > >
15
13
where TController : class
16
14
{
17
15
/// <summary>
@@ -20,41 +18,6 @@ public interface IControllerBuilder<TController> : IBaseTestBuilderWithComponent
20
18
/// <returns>Test builder of <see cref="IControllerTestBuilder"/> type.</returns>
21
19
IControllerTestBuilder ShouldHave ( ) ;
22
20
23
- /// <summary>
24
- /// Sets the <see cref="ControllerContext"/> on the tested controller.
25
- /// </summary>
26
- /// <param name="controllerContext">Instance of <see cref="ControllerContext"/> to set.</param>
27
- /// <returns>The same <see cref="IControllerBuilder{TController}"/>.</returns>
28
- IAndControllerBuilder < TController > WithControllerContext ( ControllerContext controllerContext ) ;
29
-
30
- /// <summary>
31
- /// Sets the <see cref="ControllerContext"/> on the tested controller.
32
- /// </summary>
33
- /// <param name="controllerContextSetup">Action setting the <see cref="ControllerContext"/>.</param>
34
- /// <returns>The same <see cref="IControllerBuilder{TController}"/>.</returns>
35
- IAndControllerBuilder < TController > WithControllerContext ( Action < ControllerContext > controllerContextSetup ) ;
36
-
37
- /// <summary>
38
- /// Sets the <see cref="ActionContext"/> on the tested controller.
39
- /// </summary>
40
- /// <param name="actionContext">Instance of <see cref="ActionContext"/> to set.</param>
41
- /// <returns>The same <see cref="IControllerBuilder{TController}"/>.</returns>
42
- IAndControllerBuilder < TController > WithActionContext ( ActionContext actionContext ) ;
43
-
44
- /// <summary>
45
- /// Sets the <see cref="ActionContext"/> on the tested controller.
46
- /// </summary>
47
- /// <param name="actionContextSetup">Action setting the <see cref="ActionContext"/>.</param>
48
- /// <returns>The same <see cref="IControllerBuilder{TController}"/>.</returns>
49
- IAndControllerBuilder < TController > WithActionContext ( Action < ActionContext > actionContextSetup ) ;
50
-
51
- /// <summary>
52
- /// Sets custom properties to the controller using a delegate.
53
- /// </summary>
54
- /// <param name="controllerSetup">Action to use for controller setup.</param>
55
- /// <returns>The same <see cref="IControllerBuilder{TController}"/>.</returns>
56
- IAndControllerBuilder < TController > WithSetup ( Action < TController > controllerSetup ) ;
57
-
58
21
/// <summary>
59
22
/// Indicates which action should be invoked and tested.
60
23
/// </summary>
0 commit comments