Exemplo n.º 1
0
 public IndexModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     SCManagerDbContext dbContext,
     ICloudinaryService cloudinaryService)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _dbContext         = dbContext;
     _cloudinaryService = cloudinaryService;
 }
Exemplo n.º 2
0
        protected BaseTest()
        {
            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json")
                                .Build();

            var options = new DbContextOptionsBuilder();

            options.UseSqlServer(configuration.GetConnectionString("SCManagerDbConnection"));

            SCManagerDbContext = new SCManagerDbContext(options.Options);
        }
 public UserComponentTypeService(SCManagerDbContext context)
 {
     _context = context;
 }
 public StaticSiteInfoService(SCManagerDbContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public ComponentTypeDetailService(SCManagerDbContext context)
 {
     _context = context;
 }
 public UnitMultiplierService(SCManagerDbContext context)
 {
     _context = context;
 }