public UserStore(
     [NotNull] WebApiBorilerplateDbContext dbContext,
     [NotNull] ILookupNormalizer keyNormalizer)
 {
     _dbContext     = dbContext;
     _keyNormalizer = keyNormalizer;
 }
 public AccountService(
     WebApiBorilerplateDbContext dbContext,
     UserManager userManager)
 {
     _dbContext   = dbContext;
     _userManager = userManager;
 }
 public DatabaseContextFixture([NotNull] IServiceScope serviceScope)
 {
     _serviceScope   = serviceScope ?? throw new ArgumentNullException(nameof(serviceScope));
     ServiceProvider = serviceScope.ServiceProvider;
     DbContext       = ServiceProvider.GetService <WebApiBorilerplateDbContext>();
 }
Exemple #4
0
 public UserRepository([NotNull] WebApiBorilerplateDbContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }