示例#1
0
 public ExamAceSeeder(ExamAceContext ctx, IHostingEnvironment hosting, UserManager <User> userManager, IMapper mapper)
 {
     _ctx         = ctx ?? throw new ArgumentNullException(nameof(ctx));
     _hosting     = hosting ?? throw new ArgumentNullException(nameof(hosting));
     _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager));
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
示例#2
0
 public ExamAceRepository(ExamAceContext ctx, ILogger <ExamAceRepository> logger)
 {
     _ctx    = ctx ?? throw new ArgumentNullException(nameof(ctx));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }