public EmailAuditsController( IUserService userService, IEMailService emailService ) : base(userService) { _emailService = emailService; }
public HomeController( IUserService userService, IEMailService emailService ) : base(userService) { _emailService = emailService; }
public NewsService() { _emailService = new EMailService(); var context = new TemplateEntities(); _userRepo = new GenericRepository <User>(context); _newsRepo = new GenericRepository <News>(context); }
public InternalBodyArchitectService(ISession session, SecurityManager security, IEMailService eMailServicea, IPushNotificationService pushService, ServiceConfiguration configuration) { Session = session; securityManager = security; EMailService = eMailServicea; PushNotificationService = pushService; this.configuration = configuration; }
public ExperimentController( IUserService userService, IEMailService emailService, IWeatherService weatherService ) : base(userService) { _emailService = emailService; _weatherService = weatherService; }
public AuthenticationController(IAccountRepository accountRepository, IMapper mapper, IEMailService mailService, ITokenHelper tokenHelper, ICacheRepository cacheRepository) { _accountRepository = accountRepository; _mapper = mapper; _mailService = mailService; _tokenHelper = tokenHelper; _cacheRepository = cacheRepository; }
public void Init() { var dataMocks = new DebRegDataMocks(); unitOfWork = dataMocks.UnitOfWork; mailService = new DebRegCommunicationMocks().EMailService; userManager = dataMocks.UserManager; tournamentRegistrationsManager = new TournamentRegistrationsManager(unitOfWork, mailService, userManager); }
public AccountController(IUserService userService, IServiceCache serviceCache, IAuthorizationService authorizationService, IEMailService eMailService, IGroupService groupService) { _userService = userService; _serviceCache = serviceCache; _authorizationService = authorizationService; _eMailService = eMailService; _groupService = groupService; }
public ClientService(UserManager <CustomIdentityUser> usermanager, IEMailService mailService, ICartRepo CartService, IConfiguration configurations, IHttpContextAccessor httpContextAccessor, IMapper mapper, DbContexts dbContexts) { _UserManager = usermanager; _CartRepo = CartService; _Configurations = configurations; _mailService = mailService; _mapper = mapper; _DbContext = dbContexts; }
public AuthorizationController(IUnitOfWork <MangoDbContext> unitOfWork , IMemoryCache memoryCache , ITencentCaptcha tencentCaptcha , IEMailService emailService) { _unitOfWork = unitOfWork; _memoryCache = memoryCache; _tencentCaptcha = tencentCaptcha; _emailService = emailService; }
public NewsService(IEMailService emailService, ICategoryService categoryService, IGenericRepository <DataEntities.Model.News> newsRepo, IGenericRepository <DataEntities.Model.User> userRepo, IScheduledTaskService scheduledTaskService) { _emailService = emailService; _categoryService = categoryService; _newsRepo = newsRepo; _scheduledTaskService = scheduledTaskService; _userRepo = userRepo; }
public OrderCreatedIntegrationEventHandler( IOptions <MailKitOptions> mailSettings, IOptions <MailSendOptions> mailOptions, IEMailService emailService, ILogger <OrderCreatedIntegrationEventHandler> logger) { _mailSettings = mailSettings.Value; _mailOptions = mailOptions.Value; _emailService = emailService; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SheduleService(IMapper mapper, IDbContextFactory contextFactory, IEMailService eMailService, IConverterService converterService, IUserService userService) { _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>(); _eMailService = eMailService; _converterService = converterService; _userService = userService; Mapper = mapper; }
public ProfileController( IUserService userService, IEMailService emailService, IUserFollowService userFollowService, ApplicationUserManager userManager ) : base(userService) { _emailService = emailService; _userFollowService = userFollowService; _userManager = userManager; }
public UserService( IServiceCache cache, IEMailService eMailService, IDbContextFactory contextFactory, IMapper mapper, IHttpContextAccessor httpContext, IAuthorizationService authorizationService, IConfiguration configuration) : base(cache, contextFactory, mapper, httpContext) { EMailService = eMailService; AuthorizationService = authorizationService; SaltConfiguration = configuration.GetSection("Salt").Get <SaltConfiguration>(); _eJContext = contextFactory.CreateReadonlyDbContext <EJContext>(); }
public AuthManager(IUserService userService, ITokenHelper tokenHelper, ICustomerService customerService, IOperationClaimService operationClaimService, IUserOperationClaimService userOperationClaimService, IEMailService emailService) { _userService = userService; _tokenHelper = tokenHelper; _customerService = customerService; _operationClaimService = operationClaimService; _userOperationClaimService = userOperationClaimService; _emailService = emailService; }
public RegisterMemberHandler(IEMailService emailService) { Guard.AgainstNull(emailService, "emailService"); _emailService = emailService; }
public BaseUnitTest() { Configuration = GetTestConfiguration(); var mockHttpContextAccessor = new Mock <IHttpContextAccessor>(); var context = new Mock <HttpContext>(); _mockClaimsPrincipal = new Mock <ClaimsPrincipal>(); const string fakeTenantId = "abcd"; context.Setup(x => x.Connection.RemoteIpAddress).Returns(IPAddress.None); context.Setup(x => x.User).Returns(_mockClaimsPrincipal.Object); context.Setup(x => x.Request.Headers["Tenant-ID"]).Returns(fakeTenantId); mockHttpContextAccessor.Setup(_ => _.HttpContext).Returns(context.Object); services = new ServiceCollection(); services.AddSingleton(Configuration); services.AddHttpContextAccessor(); services.AddSingleton <IHttpContextAccessor, HttpContextAccessor>(); services.AddScoped <IConfiguration>(c => Configuration); services.AddSingleton <IActionContextAccessor, ActionContextAccessor>(); services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies().Where(assembly => !assembly.FullName.StartsWith("Microsoft.VisualStudio.TraceDataCollector"))); services.AddScoped(typeof(IRepository <>), typeof(EfRepository <>)); services.AddSingleton <IServiceCache, ServiceCache>(); services.AddScoped <ISessionCache, SessionCache>(); services.AddScoped <IBaseUserService, BaseUserService>(); services.AddScoped <IUserService, UserService>(); services.AddScoped <IAuthorizationService, AuthorizationService>(); services.AddScoped <IEMailService, EMailService>(); services.AddScoped <IUserTwoFactorTokenProvider <User>, UserTwoFactorTokenProvider>(); services.AddScoped <ICourseService, CourseService>(); services.AddScoped <IGroupService, GroupService>(); services.AddScoped <IConverterService, ConverterService>(); services.AddScoped <ISheduleService, SheduleService>(); ServiceLifetime dbContextLifeTime = DbContextServiceLifetime; services.AddDbContext <DbContext, EJContext>(options => options .UseLazyLoadingProxies() .UseSqlServer(Configuration.GetConnectionString("ElectronicJournalDatabase")), ServiceLifetime.Transient); UndefinedUserId = Configuration.GetValue <int>("UndefinedUserId"); var serviceProvider = ServiceProvider = services.BuildServiceProvider(); serviceProvider.GetRequiredService <DbContext>().ChangeTracker .QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; EMailService = serviceProvider.GetService <IEMailService>(); //UserRepository = serviceProvider.get<IRepository<User>>(); BaseUserService = serviceProvider.GetService <IBaseUserService>(); UserService = serviceProvider.GetService <IUserService>(); GroupService = serviceProvider.GetService <IGroupService>(); CourseService = serviceProvider.GetService <ICourseService>(); GroupService1 = serviceProvider.GetService <IGroupService>(); CourseService1 = serviceProvider.GetService <ICourseService>(); GroupService2 = serviceProvider.GetService <IGroupService>(); CourseService2 = serviceProvider.GetService <ICourseService>(); ConverterService = serviceProvider.GetService <IConverterService>(); Mapper = serviceProvider.GetService <IMapper>(); AbsenceRepository = serviceProvider.GetService <IRepository <Absence> >(); AbsenceNotificationRepository = serviceProvider.GetService <IRepository <AbsenceNotification> >(); AuditoriumRepository = serviceProvider.GetService <IRepository <Auditorium> >(); CalendarRepository = serviceProvider.GetService <IRepository <Calendar> >(); CalendarSheduleTimeSpendingRepository = serviceProvider.GetService <IRepository <CalendarSheduleTimeSpending> >(); TimeSpendingRepository = serviceProvider.GetService <IRepository <TimeSpending> >(); GroupRepository = serviceProvider.GetService <IRepository <Group> >(); GroupSheduleRepository = serviceProvider.GetService <IRepository <GroupShedule> >(); SemesterRepository = serviceProvider.GetService <IRepository <Semester> >(); SheduleSubjectRepository = serviceProvider.GetService <IRepository <SheduleSubject> >(); SheduleTimeSpendingRepository = serviceProvider.GetService <IRepository <SheduleTimeSpending> >(); SubjectRepository = serviceProvider.GetService <IRepository <Subject> >(); WeekDayRepository = serviceProvider.GetService <IRepository <WeekDay> >(); }
public SlotManager(ISlotAssignmentManager slotAssignmentManager, ITournamentRegistrationsManager tournamentRegistrationsManager, ITournamentManager tournamentManager, IBookingManager bookingManager, IEMailService mailService, DebRegUserManager userManager) { this.slotAssignmentManager = slotAssignmentManager; this.tournamentregistrationsManager = tournamentRegistrationsManager; this.tournamentManager = tournamentManager; this.bookingManager = bookingManager; this.mailService = mailService; this.userManager = userManager; }
public PerformanceAspect(int interval) { _interval = interval; _mailService = ServiceTool.ServiceProvider.GetService <IEMailService>(); _stopwatch = ServiceTool.ServiceProvider.GetService <Stopwatch>(); }
public TournamentRegistrationsManager(IUnitOfWork unitOfWork, IEMailService mailService, DebRegUserManager userManager) : base(unitOfWork) { this.mailService = mailService; this.userManager = userManager; }
public MessageServiceBase(ISession session, SecurityInfo SecurityInfo, ServiceConfiguration configuration, IPushNotificationService pushNotification, IEMailService emailService) : base(session, SecurityInfo, configuration) { this.pushNotification = pushNotification; this.emailService = emailService; }
public SendMail(IEMailService mailService) { this.mailService = mailService; }
internal LogAnalyer(IWebService webService, IEMailService emailService) { _webService = webService; _emailService = emailService; }
public PaymentManager(ITournamentRegistrationsManager registrationsManager, IBookingManager bookingManager, IEMailService mailService) { this.registrationsManager = registrationsManager; this.bookingManager = bookingManager; this.mailService = mailService; }
public NotificationService(IEMailService emailService) { _emailService = emailService; }
public HomeController(IEMailService mailService) { MailService = mailService; }
public VoteService(ISession session, SecurityInfo SecurityInfo, ServiceConfiguration configuration, IPushNotificationService pushNotification, IEMailService emailService) : base(session, SecurityInfo, configuration, pushNotification, emailService) { }