public RoleAppServiceTests() { var serviceProvider = TestServer.Host.Services.CreateScope().ServiceProvider; _dbContext = serviceProvider.GetRequiredService <NucleusDbContext>(); _roleAppService = serviceProvider.GetRequiredService <IRoleAppService>(); }
public UserAppService( NucleusDbContext dbContext, IMapper mapper, UserManager <User> userManager) { _mapper = mapper; _userManager = userManager; }
public UserAppService(IMapper mapper, UserManager <User> userManager, NucleusDbContext dbContext) { _mapper = mapper; _userManager = userManager; _dbContext = dbContext; }
public PermissionAppService( UserManager <User> userManager, IMapper mapper, NucleusDbContext dbContext) { _userManager = userManager; _mapper = mapper; _dbContext = dbContext; }
public PermissionAppService( NucleusDbContext dbContext, UserManager <User> userManager, RoleManager <Role> roleManager, IMapper mapper ) { _dbContext = dbContext; _userManager = userManager; _roleManager = roleManager; _mapper = mapper; }
public UnitOfWorkActionFilter(NucleusDbContext dbContext) { _dbContext = dbContext; }
public UsersControllerTests() { _dbContext = TestServer.Host.Services.GetRequiredService <NucleusDbContext>(); _token = LoginAsAdminUserAndGetTokenAsync().Result; }
public RoleAppService(NucleusDbContext dbContext, RoleManager <Role> roleManager, IMapper mapper) { _dbContext = dbContext; _roleManager = roleManager; _mapper = mapper; }
public UnitOfWorkFilterTest() { _dbContext = TestServer.Host.Services.GetRequiredService <NucleusDbContext>(); }
public UserControllerTests() { _dbContext = TestServer.Host.Services.GetRequiredService <NucleusDbContext>(); }
public AchievementsSqlRepository(NucleusDbContext context) { _context = context; }
public TestBase() { ServiceProvider = TestServer.Host.Services; DbContext = ServiceProvider.GetRequiredService <NucleusDbContext>(); DbContext.Database.EnsureCreated(); }