mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Migrate handlers to UserManager<>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Features.Auth.Identity;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Moq;
|
||||
|
||||
namespace Features.Auth.Tests.TestSupport;
|
||||
|
||||
public static class UserManagerMockFactory
|
||||
{
|
||||
public static Mock<UserManager<ApplicationUser>> Create()
|
||||
{
|
||||
Mock<IUserStore<ApplicationUser>> storeMock = new();
|
||||
return new Mock<UserManager<ApplicationUser>>(
|
||||
storeMock.Object,
|
||||
null!,
|
||||
null!,
|
||||
null!,
|
||||
null!,
|
||||
null!,
|
||||
null!,
|
||||
null!,
|
||||
null!
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user