Ejemplo n.º 1
0
 public CreateRoleCommand(
     IUserService <User> userService,
     IRoleService <IdentityRole> roleService,
     IApplicationValidator <ICreateRoleInput> validator)
 {
     UserService = userService;
     RoleService = roleService;
     Validator   = validator;
 }
Ejemplo n.º 2
0
 public UpdateProfileCommand(
     TypeAdapterConfig mappingConfig,
     IApplicationValidator <IUserProfileInput> validator,
     IUserService <User> userService)
 {
     MappingConfig = mappingConfig;
     Validator     = validator;
     UserService   = userService;
 }
Ejemplo n.º 3
0
 public LoginCommand(
     IConfiguration config,
     IUserService <User> userService,
     IApplicationValidator <IUserCredentialsInput> validator,
     IJwtAuthManager jwtAuthManager)
 {
     Config         = config;
     UserService    = userService;
     Validator      = validator;
     JwtAuthManager = jwtAuthManager;
 }
 public UpdateTreatmentSessionCommand(
     IApplicationValidator <IUpdateTreatmentSessionInput> validator,
     IReadRepository <TreatmentSession> treatmentSessionRepository,
     IReadRepository <Treatment> treatmentRepository,
     IReadRepository <DentalTeam> dentalTeamRepository,
     IUnitOfWork uoW)
 {
     Validator = validator;
     TreatmentSessionRepository = treatmentSessionRepository;
     TreatmentRepository        = treatmentRepository;
     DentalTeamRepository       = dentalTeamRepository;
     UoW = uoW;
 }
Ejemplo n.º 5
0
 public AddTreatmentSessionCommand(
     IApplicationValidator <ITreatmentSessionInput> validator,
     IGenericRepository <TreatmentSession> treatmentSessionRepository,
     IGenericRepository <Patient> patientRepository,
     IGenericRepository <DentalTeam> dentalTeamRepository,
     IGenericRepository <Treatment> treatmentRepository,
     IUnitOfWork uoW)
 {
     Validator = validator;
     TreatmentSessionRepository = treatmentSessionRepository;
     PatientRepository          = patientRepository;
     DentalTeamRepository       = dentalTeamRepository;
     TreatmentRepository        = treatmentRepository;
     UoW = uoW;
 }
 public RegisterUserCommand(
     IConfiguration config,
     IUserService <User> userService,
     IApplicationValidator <IUserCredentialsInput> validator,
     IJwtAuthManager jwtAuthManager,
     IMediator mediator,
     IWriteRepository <Patient> patientRepo,
     IUnitOfWork uoW)
 {
     Config         = config;
     UserService    = userService;
     Validator      = validator;
     JwtAuthManager = jwtAuthManager;
     Mediator       = mediator;
     PatientRepo    = patientRepo;
     UoW            = uoW;
 }
 public RegisterUserCommand(
     IConfiguration config,
     IUserService <User> userService,
     IApplicationValidator <IUserCredentialsInput> validator,
     IJwtAuthManager jwtAuthManager,
     ILoginCommand loginCommand,
     ILinkUserAndRoleCommand linkUserAndRoleCommand,
     IGenericRepository <Patient> patientRepo,
     IGenericRepository <DentalWorker> dentalWorkerRepo,
     IUnitOfWork uoW)
 {
     Config                 = config;
     UserService            = userService;
     Validator              = validator;
     JwtAuthManager         = jwtAuthManager;
     LoginCommand           = loginCommand;
     LinkUserAndRoleCommand = linkUserAndRoleCommand;
     PatientRepo            = patientRepo;
     DentalWorkerRepo       = dentalWorkerRepo;
     UoW = uoW;
 }
 public ServicoAplicacaoApplication(IRepositorioApplication repositorioApplication,
                                    IApplicationValidator applicationValidator)
 {
     _repositorioApplication = repositorioApplication;
     _applicationValidator   = applicationValidator;
 }