Ejemplo n.º 1
0
 public RegistrationController(LifeNotesContext context, IOptions <JWTSettings> jwtSettings, IMapper mapper, IRegistrationService registrationRepository)
 {
     _context                = context ?? throw new ArgumentNullException(nameof(context));
     _jwtSettings            = jwtSettings.Value ?? throw new ArgumentNullException(nameof(jwtSettings));
     _mapper                 = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _registrationRepository = registrationRepository ?? throw new ArgumentNullException(nameof(registrationRepository));
 }
Ejemplo n.º 2
0
 public LoginController(LifeNotesContext context, IOptions <JWTSettings> jwtSettings, IMapper mapper, ILoginService loginRepository)
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _jwtSettings     = jwtSettings.Value ?? throw new ArgumentNullException(nameof(jwtSettings));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _loginRepository = loginRepository ?? throw new ArgumentNullException(nameof(loginRepository));
 }
Ejemplo n.º 3
0
 public RegistrationService(LifeNotesContext context)
 {
     _context = context;
 }
Ejemplo n.º 4
0
 public LoginService(LifeNotesContext context)
 {
     _context = context;
 }
Ejemplo n.º 5
0
 public NotesControllerr(INoteService logicRepository, LifeNotesContext context, IMapper mapper)
 {
     _logicRepository = logicRepository ?? throw new ArgumentNullException(nameof(logicRepository));
     _context         = context ?? throw new ArgumentNullException(nameof(context));;
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));;
 }
Ejemplo n.º 6
0
 public AuthorizationController(LifeNotesContext context, IOptions <JWTSettings> jwtSettings, IMapper mapper)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _jwtSettings = jwtSettings.Value ?? throw new ArgumentNullException(nameof(jwtSettings));
     _mapper      = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 7
0
 public NoteService(LifeNotesContext context)
 {
     _context = context;
 }
Ejemplo n.º 8
0
 public StatisticsController(LifeNotesContext context)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
 }