Skip to content

Commit d39500e

Browse files
committed
Fixed incorrect claims principle builder in IControllerBuilder
1 parent b68b4c9 commit d39500e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/MyTested.Mvc/Builders/Controllers/ControllerHttpBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public IAndControllerBuilder<TController> WithAuthenticatedUser()
5858
}
5959

6060
/// <inheritdoc />
61-
public IAndControllerBuilder<TController> WithAuthenticatedUser(Action<IAndClaimsPrincipalBuilder> userBuilder)
61+
public IAndControllerBuilder<TController> WithAuthenticatedUser(Action<IClaimsPrincipalBuilder> userBuilder)
6262
{
6363
var newUserBuilder = new ClaimsPrincipalBuilder();
6464
userBuilder(newUserBuilder);

src/MyTested.Mvc/IControllerBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ IAndControllerBuilder<TController> WithResolvedDependencyFor<TDependency>(TDepen
109109
/// </summary>
110110
/// <param name="userBuilder">User builder to create mocked user object.</param>
111111
/// <returns>The same controller builder.</returns>
112-
IAndControllerBuilder<TController> WithAuthenticatedUser(Action<IAndClaimsPrincipalBuilder> userBuilder);
112+
IAndControllerBuilder<TController> WithAuthenticatedUser(Action<IClaimsPrincipalBuilder> userBuilder);
113113

114114
/// <summary>
115115
/// Sets custom properties to the controller using action delegate.

0 commit comments

Comments
 (0)