示例#1
0
 public EmailConfirmationModel(UserManager <ApplicationUser> userManager,
                               SignInManager <ApplicationUser> signInManager,
                               ILawyerVerificationService verificationService,
                               ApplicationDbContext context,
                               RoleManager <IdentityRole> roleManager)
 {
     _userManager         = userManager;
     _signInManger        = signInManager;
     _verificationService = verificationService;
     _context             = context;
     _roleManager         = roleManager;
 }
 public LawyerController(
     RoleManager <IdentityRole> roleManager,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ApplicationDbContext context,
     IEmailSender emailSender,
     ILogger <LawyerController> logger,
     ILawyerVerificationService verify)
 {
     _roleManager   = roleManager;
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _emailSender   = emailSender;
     _logger        = logger;
     _verify        = verify;
 }
 public LawyerVerificationServiceTest()
 {
     _service = new LawyerVerificationService();
 }