Skip to content

Commit 6da6c64

Browse files
committed
Fixed ControllerBuilder activation errors (#326)
1 parent 9ecbe00 commit 6da6c64

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/MyTested.AspNetCore.Mvc.Controllers/Builders/Controllers/BaseControllerBuilder.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
{
33
using Components;
44
using Contracts.Base;
5+
using Internal;
56
using Internal.Contracts;
67
using Internal.TestContexts;
78
using Microsoft.AspNetCore.Mvc.Controllers;
8-
using Microsoft.AspNetCore.Mvc.Internal;
99
using Microsoft.Extensions.DependencyInjection;
1010
using System.Linq.Expressions;
1111
using System.Reflection;
@@ -53,8 +53,10 @@ protected override TController TryCreateComponentWithFactory()
5353

5454
protected override void ActivateComponent()
5555
=> this.Services
56-
.GetServices<IControllerPropertyActivator>()
57-
?.ForEach(a => a.Activate(this.TestContext.ComponentContext, this.TestContext.Component));
56+
.GetServices(WebFramework.Internals.ControllerPropertyActivator)
57+
?.ForEach(a => a
58+
.Exposed()
59+
.Activate(this.TestContext.ComponentContext, this.TestContext.Component));
5860

5961
protected override void ProcessAndValidateMethod(LambdaExpression methodCall, MethodInfo methodInfo)
6062
{

0 commit comments

Comments
 (0)