Exemple #1
0
 public PayoutService(IPayoutRepository payoutRepository,
                      ITicketRepository ticketRepository,
                      IMapper mapper,
                      IUnitOfWork unitOfWork,
                      ICustomerRepository customerRepository,
                      ICreditCardRepository creditCardRepository,
                      IRouteTicketRepository routeTicketRepository,
                      IPaymentRepository paymentRepository,
                      IRouteRepository routeRepository,
                      IOptions <CrediCardSetting> options,
                      IUserRepository userRepository,
                      IResolveOptionLogRepository resolveOptionLogRepository,
                      ISendGridService sendGridService,
                      IOneSignalService oneSignalService,
                      INotificationService notificationService)
 {
     _payoutRepository      = payoutRepository;
     _ticketRepository      = ticketRepository;
     _customerRepository    = customerRepository;
     _creditCardRepository  = creditCardRepository;
     _routeRepository       = routeRepository;
     _routeTicketRepository = routeTicketRepository;
     _paymentRepository     = paymentRepository;
     _mapper                     = mapper;
     _unitOfWork                 = unitOfWork;
     SETTING                     = options;
     _userRepository             = userRepository;
     _resolveOptionLogRepository = resolveOptionLogRepository;
     _sendGridService            = sendGridService;
     _oneSignalService           = oneSignalService;
     _notificationService        = notificationService;
 }
 public UsersActivities(
     IUserService userService,
     ISendGridService sendGridService)
 {
     _userService     = userService;
     _sendGridService = sendGridService;
 }
 public EmailController(IEmailService emailService, ISendGridService sendGridService, IUserService userService, IMapper mapper)
 {
     _emailService    = emailService;
     _sendGridService = sendGridService;
     _userService     = userService;
     _mapper          = mapper;
 }
Exemple #4
0
 public EventMainDriver(ILogger <EventMainDriver> logger, ISendGridService sendGridService,
                        Microsoft.Extensions.Configuration.IConfiguration configuration)
 {
     _logger          = logger;
     _sendGridService = sendGridService;
     _configuration   = configuration;
 }
Exemple #5
0
        public SendGridServiceTests()
        {
            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json")
                                .Build();

            _sendGridService = new SendGridService(configuration);
        }
 public EmailModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ISendGridService sendGridService)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _sendGridService = sendGridService;
 }
 public RegisterModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <RegisterModel> logger,
     ISendGridService sendGridService)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _logger          = logger;
     _sendGridService = sendGridService;
 }
Exemple #8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="logger">ILogger</param>
 /// <param name="sendGridService">Email sending service</param>
 /// <param name="portalService">Portal service (for updating last sended email notification datetime)</param>
 /// <param name="options">Options</param>
 public NotificationsService(
     ILogger <NotificationsService> logger,
     ISendGridService sendGridService,
     IPortalCrudService portalService,
     IOptions <NotificationsOptions> options)
 {
     _logger          = logger;
     _sendGridService = sendGridService;
     _portalService   = portalService;
     _hoursToIgnoreContinuousError = options.Value.HoursToIgnoreContinuousError;
 }
Exemple #9
0
 /// <summary>
 /// Constructor for Home Controller
 /// </summary>
 public HomeController(
     IBillingCalendarService calendarService,
     IConfiguration configuration,
     ISendGridService sendGridService
     )
 {
     _calendarService = calendarService;
     _configuration   = configuration;
     _sendGridService = sendGridService;
     configuration.GetSection("AppSettings").Bind(_webConfiguration);
 }
 public RouteController(
     IRouteService routeService,
     ITicketService ticketService,
     IPaymentService paymentService,
     ISendGridService sendGridService
     )
 {
     _routeService    = routeService;
     _ticketService   = ticketService;
     _paymentService  = paymentService;
     _sendGridService = sendGridService;
 }
Exemple #11
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context">DbContext</param>
 /// <param name="logger">ILogger</param>
 /// <param name="checkEmailService">Check Email Service</param>
 /// <param name="sendGridService">Sending email notification service</param>
 public UserCrudService(
     DashboardDbContext context,
     ILogger <UserCrudService> logger,
     ICheckEmailService checkEmailService,
     ISendGridService sendGridService
     )
 {
     _context           = context;
     _logger            = logger;
     _checkEmailService = checkEmailService;
     _sendGridService   = sendGridService;
 }
Exemple #12
0
    public UserService(IRefreshTokenRepository refreshTokenRepository, IUserRepository userRepository, IOptions <JwtOptions> jwtOptions, TokenValidationParameters tokenValidationParameters, IPwnedPasswordsClient pwnedPasswordsClient, IMapper mapper, ISendGridService mailService)
    {
        _refreshTokenRepository    = refreshTokenRepository;
        _userRepository            = userRepository;
        _jwtOptions                = jwtOptions.Value;
        _tokenValidationParameters = tokenValidationParameters.Clone();
        _pwnedPasswordsClient      = pwnedPasswordsClient;
        _mapper      = mapper;
        _mailService = mailService;

        _tokenValidationParameters.ValidateLifetime = false;
    }
 public ResendEmailConfirmationModel(UserManager <ApplicationUser> userManager, ISendGridService sendGridService)
 {
     _userManager     = userManager;
     _sendGridService = sendGridService;
 }
 public CustomerController(ICustomerService customerService, ISendGridService sendGridService, IOTPService oTPService)
 {
     _customerService = customerService;
     _sendGridService = sendGridService;
     _oTPService      = oTPService;
 }
 public SendTestEmailController(ISendGridService sendGridService)
 {
     _sendGridService = sendGridService;
 }
 public CreateTravelCommandHandler(ITravelDbContext travelDbContext, ISendGridService sendGridService)
 {
     _travelDbContext = travelDbContext;
     _sendGridService = sendGridService;
 }
Exemple #17
0
 public EditModel(IDataService db, INotificationService ns, ISendGridService sg)
 {
     _db = db;
     _ns = ns;
     _sg = sg;
 }
 public SendGridController(ISendGridService sendGridService)
 {
     _sendGridService = sendGridService;
 }
Exemple #19
0
 public UserService(IUserRepository userRepository, ISendGridService sendGridService)
 {
     _userRepository  = userRepository;
     _sendGridService = sendGridService;
 }
 public NotificationsHandler(
     ISendGridService sendGridService)
 {
     _sendGridService = sendGridService;
 }
Exemple #21
0
 public NotificationActivities(
     ISendGridService sendGridService)
 {
     _sendGridService = sendGridService;
 }
 public SendEmailHandlers(ISendGridService sendGridService)
 {
     _sendGridService = sendGridService;
 }
 public PayoutController(IPayoutService payoutService, ISendGridService sendGridService)
 {
     _payoutService   = payoutService;
     _sendGridService = sendGridService;
 }
 public ForgotPasswordModel(UserManager <ApplicationUser> userManager, ISendGridService sendGridService)
 {
     _userManager     = userManager;
     _sendGridService = sendGridService;
 }