mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
25 lines
554 B
C#
25 lines
554 B
C#
using Features.Users.Identity;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Moq;
|
|
|
|
namespace Features.Users.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!
|
|
);
|
|
}
|
|
}
|