Created
March 26, 2017 17:04
-
-
Save samueleresca/c3cd952b3b0b5aff15ee11c63446f93f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Blog.Turnmeup.DAL.Models; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Identity; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Extensions.Options; | |
using Moq; | |
namespace Blog.Turnmeup.API.Tests | |
{ | |
public class FakeSignInManager : SignInManager<AppUser> | |
{ | |
public FakeSignInManager() | |
: base(new Mock<FakeUserManager>().Object, | |
new HttpContextAccessor(), | |
new Mock<IUserClaimsPrincipalFactory<AppUser>>().Object, | |
new Mock<IOptions<IdentityOptions>>().Object, | |
new Mock<ILogger<SignInManager<AppUser>>>().Object ) | |
{ } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment