Skip to content

Commit d7ab87d

Browse files
committed
Added ProvideTheControllerInstance and ProvideTheActionResult methods (#13)
1 parent 76cea42 commit d7ab87d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

MyWebApi/Builders/And/AndContinuityTestBuilder.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@ public AndContinuityTestBuilder(ApiController controller, string actionName, TAc
1212
: base(controller, actionName, actionResult)
1313
{
1414
}
15+
16+
public ApiController ProvideTheControllerInstance()
17+
{
18+
return this.Controller;
19+
}
20+
21+
public TActionResult ProvideTheActionResult()
22+
{
23+
return this.ActionResult;
24+
}
1525
}
1626
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
namespace MyWebApi.Builders.Contracts.And
22
{
3+
using System.Web.Http;
4+
35
using Actions;
46

57
public interface IAndContinuityTestBuilder<out TActionResult> : IActionResultTestBuilder<TActionResult>
68
{
9+
ApiController ProvideTheControllerInstance();
10+
11+
TActionResult ProvideTheActionResult();
712
}
813
}

0 commit comments

Comments
 (0)