예제 #1
0
 public UserStore(
     [NotNull] WebApiBorilerplateDbContext dbContext,
     [NotNull] ILookupNormalizer keyNormalizer)
 {
     _dbContext     = dbContext;
     _keyNormalizer = keyNormalizer;
 }
예제 #2
0
 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>();
 }
예제 #4
0
 public UserRepository([NotNull] WebApiBorilerplateDbContext dbContext)
 {
     _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
 }