public ReplyUseCaseShould()
 {
     SetupContext();
     _participantFactory   = new ParticipantFactory();
     _invitationRepository = new InvitationRepository(_context);
     _eventRepository      = new EventRepository(_context);
 }
Beispiel #2
0
 public GetInvitationDetailsOperation(
     IInvitationRepository invitationRepository,
     IEmployeeRepository employeeRepository)
 {
     _invitationRepository = invitationRepository;
     _employeeRepository   = employeeRepository;
 }
 public CreateInvitationCommandHandler(
     IInvitationRepository invitationRepository,
     IUserRepository userRepository)
 {
     this.invitationRepository = invitationRepository;
     this.userRepository       = userRepository;
 }
Beispiel #4
0
 public UpdateAttendedStatusOnParticipantCommandHandler(
     IInvitationRepository invitationRepository,
     IUnitOfWork unitOfWork)
 {
     _unitOfWork           = unitOfWork;
     _invitationRepository = invitationRepository;
 }
Beispiel #5
0
 public InvitationController(IInvitationRepository repo, IUserRepository users, IOrganizationRepository orgs, IMapper mapper)
 {
     _users  = users;
     _mapper = mapper;
     _orgs   = orgs;
     _repo   = repo;
 }
 public UnSignPunchOutCommandHandler(
     IInvitationRepository invitationRepository,
     IUnitOfWork unitOfWork)
 {
     _invitationRepository = invitationRepository;
     _unitOfWork           = unitOfWork;
 }
Beispiel #7
0
 public LinksController(IInvitationRepository invitationRepository, ILinkRepository linkRepository,
                        IGroupRepository groupRepository)
 {
     _invitationRepository = invitationRepository;
     _linkRepository       = linkRepository;
     _groupRepository      = groupRepository;
 }
Beispiel #8
0
        public InvitationService(
            IClock clock,
            IUserInfoProvider userContextPrtovider,
            IInvitationRepository invitationRepository,
            IAlienService alienService,
            IEmployeeService employeeService,
            IVisitDetailService visitDetailService,
            IForeignParticipantService foreignParticipantService)
        {
            Contract.Argument.IsNotNull(clock, nameof(clock));
            Contract.Argument.IsNotNull(userContextPrtovider, nameof(userContextPrtovider));
            Contract.Argument.IsNotNull(invitationRepository, nameof(invitationRepository));
            Contract.Argument.IsNotNull(alienService, nameof(alienService));
            Contract.Argument.IsNotNull(employeeService, nameof(employeeService));
            Contract.Argument.IsNotNull(visitDetailService, nameof(visitDetailService));
            Contract.Argument.IsNotNull(foreignParticipantService, nameof(foreignParticipantService));

            _clock = clock;
            _userContextPrtovider      = userContextPrtovider;
            _invitationRepository      = invitationRepository;
            _alienService              = alienService;
            _employeeService           = employeeService;
            _visitDetailService        = visitDetailService;
            _foreignParticipantService = foreignParticipantService;
        }
Beispiel #9
0
 //TODO: remove "repo" from ctor
 public InvitationsController(
     IAccountRepository accountRepo,
     IInvitationRepository inviteRepo)
 {
     _AccountRepo = accountRepo;
     _InviteRepo  = inviteRepo;
 }
 public InvitationsController(IUserRepository userRepository, IGroupRepository groupRepository,
                              IInvitationRepository invitationRepository)
 {
     _userRepository       = userRepository;
     _groupRepository      = groupRepository;
     _invitationRepository = invitationRepository;
 }
 public UpdateNoteOnParticipantCommandHandler(
     IInvitationRepository invitationRepository,
     IUnitOfWork unitOfWork)
 {
     _invitationRepository = invitationRepository;
     _unitOfWork           = unitOfWork;
 }
 public ReplyUseCase(DbContext eventContext, IParticipantFactory participantFactory, IEventRespository eventRespository, IInvitationRepository invitationRepository)
 {
     _eventContext         = eventContext;
     _participantFactory   = participantFactory;
     _eventRespository     = eventRespository;
     _invitationRepository = invitationRepository;
 }
 public CreateInvitationCommandHandler(
     IPlantProvider plantProvider,
     IFusionMeetingClient meetingClient,
     IInvitationRepository invitationRepository,
     IUnitOfWork unitOfWork,
     ICommPkgApiService commPkgApiService,
     IMcPkgApiService mcPkgApiService,
     IPersonApiService personApiService,
     IFunctionalRoleApiService functionalRoleApiService,
     IOptionsMonitor <MeetingOptions> meetingOptions,
     IPersonRepository personRepository,
     ICurrentUserProvider currentUserProvider,
     ILogger <CreateInvitationCommandHandler> logger)
 {
     _plantProvider            = plantProvider;
     _meetingClient            = meetingClient;
     _invitationRepository     = invitationRepository;
     _unitOfWork               = unitOfWork;
     _commPkgApiService        = commPkgApiService;
     _mcPkgApiService          = mcPkgApiService;
     _personApiService         = personApiService;
     _functionalRoleApiService = functionalRoleApiService;
     _meetingOptions           = meetingOptions;
     _personRepository         = personRepository;
     _currentUserProvider      = currentUserProvider;
     _logger = logger;
 }
 public InvitationService(
     IInvitationRepository invitationRepository,
     IAppEmailSender emailSender)
 {
     _invitationRepository = invitationRepository;
     _emailSender          = emailSender;
 }
 public InviteCommandHandler(
     IInvitationRepository invitationRepository,
     IMapper mapper)
 {
     _invitationRepository = invitationRepository;
     _mapper = mapper;
 }
 public ResendInvitationCommandHandler(IInvitationRepository invitationRepository, IMembershipRepository membershipRepository, IMediator mediator, EmployerAccountsConfiguration employerApprenticeshipsServiceConfiguration, IUserAccountRepository userRepository)
 {
     if (invitationRepository == null)
     {
         throw new ArgumentNullException(nameof(invitationRepository));
     }
     if (membershipRepository == null)
     {
         throw new ArgumentNullException(nameof(membershipRepository));
     }
     if (mediator == null)
     {
         throw new ArgumentNullException(nameof(mediator));
     }
     if (employerApprenticeshipsServiceConfiguration == null)
     {
         throw new ArgumentNullException(nameof(employerApprenticeshipsServiceConfiguration));
     }
     _invitationRepository = invitationRepository;
     _membershipRepository = membershipRepository;
     _mediator             = mediator;
     _employerApprenticeshipsServiceConfiguration = employerApprenticeshipsServiceConfiguration;
     _userRepository = userRepository;
     _validator      = new ResendInvitationCommandValidator();
 }
 public InvitationController()
 {
     String connectionString = ConfigurationManager.ConnectionStrings["MeetGenDB"].ConnectionString;
     _meetRepository = new MeetingRepository(connectionString);
     _userRepository = new UserRepository(connectionString);
     _invitationRepository = new InvitationRepository(connectionString);
 }
Beispiel #18
0
        public InvitationService(
            IInvitationRepository invitationRepository,
            ICommunicationRepository communicationService,
            IConfigurationWrapper configuration,
            IGroupRepository groupRepository,
            IParticipantRepository participantRepository,
            IContactRepository contactRepository)
        {
            _invitationRepository  = invitationRepository;
            _communicationService  = communicationService;
            _groupRepository       = groupRepository;
            _participantRepository = participantRepository;
            _contactRepository     = contactRepository;

            _groupInvitationType                = configuration.GetConfigIntValue("GroupInvitationType");
            _groupInvitationEmailTemplate       = configuration.GetConfigIntValue("GroupInvitationEmailTemplate");
            _groupInvitationEmailTemplateCustom = configuration.GetConfigIntValue("GroupInvitationEmailTemplateCustom");
            _tripInvitationType          = configuration.GetConfigIntValue("TripInvitationType");
            _tripInvitationEmailTemplate = configuration.GetConfigIntValue("PrivateInviteTemplate");
            _anywhereGatheringInvitationEmailTemplate = configuration.GetConfigIntValue("AnywhereGatheringInvitationEmailTemplate");
            _anywhereGatheringInvitationTypeId        = configuration.GetConfigIntValue("AnywhereGatheringInvitationType");


            _defaultInvitationEmailTemplate = configuration.GetConfigIntValue("DefaultInvitationEmailTemplate");

            _domainId = configuration.GetConfigIntValue("DomainId");

            _groupRoleLeader = configuration.GetConfigIntValue("GroupRoleLeader");
        }
Beispiel #19
0
 public InvitationService(IInvitationRepository invitationRepository, UserManager <User> userManager, IGameRepository gameRepository, IEmailSender emailSender)
 {
     _invitationRepository = invitationRepository;
     _userManager          = userManager;
     _gameRepository       = gameRepository;
     _emailSender          = emailSender;
 }
Beispiel #20
0
 public AccountService(IAccountRepository repository, IMessageBus messageBus, IApplicationRepository applicationRepository, IInvitationRepository invitationRepository)
 {
     _repository            = repository;
     _messageBus            = messageBus;
     _applicationRepository = applicationRepository;
     _invitationRepository  = invitationRepository;
 }
Beispiel #21
0
        public InviteJoinBand(IInvitationRepository invitationRepository, IBandRepository bandRepository, IBanditRepository banditRepository, Notifications notifications)
        {
            if (invitationRepository == null)
            {
                throw new ArgumentNullException(nameof(invitationRepository));
            }

            if (bandRepository == null)
            {
                throw new ArgumentNullException(nameof(bandRepository));
            }

            if (banditRepository == null)
            {
                throw new ArgumentNullException(nameof(banditRepository));
            }

            if (notifications == null)
            {
                throw new ArgumentNullException(nameof(notifications));
            }

            this.notifications        = notifications;
            this.bandRepository       = bandRepository;
            this.banditRepository     = banditRepository;
            this.invitationRepository = invitationRepository;
        }
 public CreateInvitationOperation(IRepository <IdentityUser> userRepository, IEmailService emailService, IInvitationRepository invitationRepository, IAuthorizationContext authorizationContext)
 {
     _userRepository       = userRepository;
     _emailService         = emailService;
     _invitationRepository = invitationRepository;
     _authorizationContext = authorizationContext;
 }
Beispiel #23
0
 public AcceptInvitationHandler(IInvitationRepository repository,
                                IAccountRepository accountRepository, IEventBus eventBus)
 {
     _repository        = repository;
     _accountRepository = accountRepository;
     _eventBus          = eventBus;
 }
 public InvitationController(IMeetingRepository meetingRepository, IUserRepository userReository,
     IInvitationRepository invitationRepository)
 {
     _meetRepository = meetingRepository;
     _userRepository = userReository;
     _invitationRepository = invitationRepository;
 }
 /// <summary>
 ///     Creates a new instance of <see cref="InviteUserHandler" />.
 /// </summary>
 /// <param name="invitationRepository">Store invitations.</param>
 /// <param name="userRepository">To load invited and invitee.</param>
 /// <param name="applicationRepository">Add pending member.</param>
 /// <param name="baseConfig">To get the base url.</param>
 public InviteUserHandler(IInvitationRepository invitationRepository,
                          IUserRepository userRepository, IApplicationRepository applicationRepository, IConfiguration <BaseConfiguration> baseConfig)
 {
     _invitationRepository  = invitationRepository;
     _userRepository        = userRepository;
     _applicationRepository = applicationRepository;
     _baseConfiguration     = baseConfig.Value;
 }
Beispiel #26
0
 /// <summary>
 ///     Creates a new instance of <see cref="InviteUserHandler" />.
 /// </summary>
 /// <param name="invitationRepository">Store invitations</param>
 /// <param name="userRepository">To load inviter and invitee</param>
 /// <param name="applicationRepository">Add pending member</param>
 public InviteUserHandler(IInvitationRepository invitationRepository,
                          IUserRepository userRepository, IApplicationRepository applicationRepository, ConfigurationStore configStore)
 {
     _invitationRepository  = invitationRepository;
     _userRepository        = userRepository;
     _applicationRepository = applicationRepository;
     _configStore           = configStore;
 }
Beispiel #27
0
 public RegInvitationCommandHandler(IMapper mapper, IUnitOfWork unitOfWork, IInvitationRepository accountRepository, IInvitationManager invitationManager, ISession session)
 {
     _unitOfWork           = unitOfWork;
     _invitationRepository = accountRepository;
     _mapper            = mapper;
     _invitationManager = invitationManager;
     _session           = session;
 }
 public AcceptInvitationHandler(IInvitationRepository invitationRepository,
                                IFriendshipRepository friendshipRepository,
                                IClock clock)
 {
     _invitationRepository = invitationRepository;
     _friendshipRepository = friendshipRepository;
     _clock = clock;
 }
        public UnitOfWork()
        {
            _context = new ApplicationContext();

            Events      = new EventRepository(_context);
            Comments    = new CommentRepository(_context);
            Invitations = new InvitationRepository(_context);
        }
Beispiel #30
0
 public RegisterVolunteerHandler(IJwtGenerator jwtGenerator, ISystemClock clock, IInvitationRepository invitationRepository, IVolunteerRepository volunteerRepository, IPasswordHasher <User> passwordHasher)
 {
     _jwtGenerator         = jwtGenerator;
     _clock                = clock;
     _invitationRepository = invitationRepository;
     _volunteerRepository  = volunteerRepository;
     _passwordHasher       = passwordHasher;
 }
 public AuthenticationService(IInvitationRepository invitationRepository,
                              ISendInvitesRequestValidationService <SendInvitesDto> requestValidationService,
                              ISmsService smsService)
 {
     _invitationRepository     = invitationRepository;
     _requestValidationService = requestValidationService;
     _smsService = smsService;
 }
 public DeletePunchOutCommandHandler(
     IInvitationRepository invitationRepository,
     IUnitOfWork unitOfWork,
     IHistoryRepository historyRepository)
 {
     _invitationRepository = invitationRepository;
     _unitOfWork           = unitOfWork;
     _historyRepository    = historyRepository;
 }
 public InvitationController(String connectionString)
 {
     _meetRepository = new MeetingRepository(connectionString);
     _userRepository = new UserRepository(connectionString);
     _invitationRepository = new InvitationRepository(connectionString);
 }
 /// <summary>
 /// 构造器
 /// </summary>
 public InvitationService(IInvitationRepository InvitationRepository, IUserInvitationSettingsRepository userInvitationSettingsRepository)
 {
     this.invitationRepository = InvitationRepository;
     this.userInvitationSettingsRepository = userInvitationSettingsRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FriendsController"/> class.
 /// </summary>
 /// <param name="friendRepository">The friend repository.</param>
 /// <param name="invitationRepository">The invitation repository.</param>
 public FriendsController(IFriendRepository friendRepository, IInvitationRepository invitationRepository)
 {
     _friendRepository = friendRepository;
     _invitationRepository = invitationRepository;
 }
 public InvitationServiceLayer(IInvitationRepository repo)
 {
     _repo = repo;
     ValidationDic = new Dictionary<string, string>();
 }