Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueleresca/c3cd952b3b0b5aff15ee11c63446f93f to your computer and use it in GitHub Desktop.
Save samueleresca/c3cd952b3b0b5aff15ee11c63446f93f to your computer and use it in GitHub Desktop.
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