示例#1
0
 public CrowdController(ICrowdService crowdService, IPartImageService partImageService, IDiscountService discountService, IParticipationService participationService)
 {
     _discountService      = discountService;
     _crowdService         = crowdService;
     _partImageService     = partImageService;
     _participationService = participationService;
 }
 public ParticipationController(
     IParticipationService participationService,
     IValidationService validationService)
 {
     _participationService = participationService;
     _validationService    = validationService;
 }
 public UserPanelController(IDbContext dbContext, ITechnicalStaffService technicalStaffService, IParticipationService participationService, ITechnicalStaffRoleService technicalStaffRoleService)
 {
     _dbContext                 = dbContext;
     _technicalStaffService     = technicalStaffService;
     _participationService      = participationService;
     _technicalStaffRoleService = technicalStaffRoleService;
 }
示例#4
0
 public CrowdController(ICrowdService crowdService,IPartImageService partImageService, IDiscountService discountService,IParticipationService  participationService)
 {
     _discountService = discountService;
     _crowdService = crowdService;
     _partImageService = partImageService;
     _participationService = participationService;
 }
 public ParticipationFlowController(
     IParticipationService participationService,
     IConfigurationService configurationService) :
     base(configurationService)
 {
     _participationService = participationService;
 }
 public UserPanelController(IDbContext dbContext, ITechnicalStaffService technicalStaffService, IParticipationService participationService, ITechnicalStaffRoleService technicalStaffRoleService)
 {
     _dbContext = dbContext;
     _technicalStaffService = technicalStaffService;
     _participationService = participationService;
     _technicalStaffRoleService = technicalStaffRoleService;
 }
 /// <summary>
 /// ctor
 /// </summary>
 public ParticipationsController(
     IEventService eventService,
     IParticipationService participationService
     )
 {
     _eventService         = eventService;
     _participationService = participationService;
 }
示例#8
0
 public HomeController(IDbContext dbContext, ICompetitionRepresentativeUserService competitionRepresentativeUserService, IParticipationService participateService,
     ICompetitionService competitionService)
 {
     _dbContext = dbContext;
     _participateService = participateService;
     _competitionService = competitionService;
     _competitionRepresentativeUserService = competitionRepresentativeUserService;
 }
 public HomeController(IDbContext dbContext, ICompetitionRepresentativeUserService competitionRepresentativeUserService, IParticipationService participateService,
                       ICompetitionService competitionService)
 {
     _dbContext          = dbContext;
     _participateService = participateService;
     _competitionService = competitionService;
     _competitionRepresentativeUserService = competitionRepresentativeUserService;
 }
示例#10
0
 public CrowdApiController(ICrowdService crowdService, IPartImageService partImageService, IDiscountService discountService, IFollowerService followerService, IPhoneService phoneService, IParticipationService participationService)
 {
     _discountService      = discountService;
     _crowdService         = crowdService;
     _partImageService     = partImageService;
     _followerService      = followerService;
     _phoneService         = phoneService;
     _participationService = participationService;
 }
 public HomeController(IDbContext dbContext, ISportService sportService, ICompetitionSportService competitionSportService, ICompetitionService competitionService,
                       IParticipationService participationService)
 {
     _dbContext               = dbContext;
     _sportService            = sportService;
     _competitionSportService = competitionSportService;
     _competitionService      = competitionService;
     _participationService    = participationService;
 }
示例#12
0
 public CompetitorController(IDbContext dbContext, IStudyFieldService studyFieldService, IStudyFieldDegreeService studyFieldDegreeService, ICompetitorService competitorService, IParticipationService participationService, ICompetitionService competitionService)
 {
     _dbContext               = dbContext;
     _studyFieldService       = studyFieldService;
     _studyFieldDegreeService = studyFieldDegreeService;
     _competitorService       = competitorService;
     _participationService    = participationService;
     _competitionService      = competitionService;
 }
 public CompetitorController(IDbContext dbContext, IStudyFieldService studyFieldService, IStudyFieldDegreeService studyFieldDegreeService, ICompetitorService competitorService, IParticipationService participationService, ICompetitionService competitionService)
 {
     _dbContext = dbContext;
     _studyFieldService = studyFieldService;
     _studyFieldDegreeService = studyFieldDegreeService;
     _competitorService = competitorService;
     _participationService = participationService;
     _competitionService = competitionService;
 }
示例#14
0
 public HomeController(IDbContext dbContext, ISportService sportService, ICompetitionSportService competitionSportService, ICompetitionService competitionService,
     IParticipationService participationService)
 {
     _dbContext = dbContext;
     _sportService = sportService;
     _competitionSportService = competitionSportService;
     _competitionService = competitionService;
     _participationService = participationService;
 }
示例#15
0
 public CrowdApiController(ICrowdService crowdService, IPartImageService partImageService, IDiscountService discountService, IFollowerService followerService, IPhoneService phoneService, IParticipationService participationService)
 {
     _discountService = discountService;
     _crowdService = crowdService;
     _partImageService = partImageService;
     _followerService = followerService;
     _phoneService = phoneService;
     _participationService = participationService;
 }
示例#16
0
 public ParticipationController(INotificator notificator,
                                IParticipationRepository participationRepository,
                                IParticipationService participationService,
                                IMapper mapper,
                                IUser user) : base(notificator, user)
 {
     _participationRepository = participationRepository;
     _participationService    = participationService;
     _mapper = mapper;
 }
示例#17
0
        public void test_participation_manager_as_service()
        {
            ChannelFactory <IParticipationService> channelFactory = new ChannelFactory <IParticipationService>("");

            IParticipationService proxy = channelFactory.CreateChannel();

            test_manager_as_service(proxy as ICommunicationObject, "IParticipationService");

            channelFactory.Close();
        }
示例#18
0
 public DefaultController(IParticipationService participationService, ICommonFunctions commonFunctions,
                          ICompetitionService competitionService, IFAQRepository fAQRepository, IMapper mapper,
                          ITermRepository termRepository)
 {
     this.participationService = participationService;
     this.commonFunctions      = commonFunctions;
     this.competitionService   = competitionService;
     this.fAQRepository        = fAQRepository;
     this.mapper         = mapper;
     this.termRepository = termRepository;
 }
示例#19
0
 public InstantWinController(
     IConfigurationService configurationService,
     IParticipationService participationService,
     IValidationService validationService,
     IInstantWinService instantWinService)
 {
     _configurationService = configurationService;
     _participationService = participationService;
     _validationService    = validationService;
     _instantWinService    = instantWinService;
 }
示例#20
0
 public AdminController(IDbContext dbContext, IRepresentativeUserService representativeUserService, IParticipationService participationService, IDormService dormService, ICompetitorService competitorService, ITechnicalStaffService technicalStaffService, ICommonTechnicalStaffService commonTechnicalStaffService, ICompetitionService competitionService,
     ICompetitionRepresentativeUserService competitionRepresentativeUserService)
 {
     _dbContext = dbContext;
     _representativeUserService = representativeUserService;
     _participationService = participationService;
     _dormService = dormService;
     _competitorService = competitorService;
     _technicalStaffService = technicalStaffService;
     _commonTechnicalStaffService = commonTechnicalStaffService;
     _competitionService = competitionService;
     _competitionRepresentativeUserService = competitionRepresentativeUserService;
 }
 public AdminController(IDbContext dbContext, IRepresentativeUserService representativeUserService, IParticipationService participationService, IDormService dormService, ICompetitorService competitorService, ITechnicalStaffService technicalStaffService, ICommonTechnicalStaffService commonTechnicalStaffService, ICompetitionService competitionService,
                        ICompetitionRepresentativeUserService competitionRepresentativeUserService)
 {
     _dbContext = dbContext;
     _representativeUserService = representativeUserService;
     _participationService      = participationService;
     _dormService                          = dormService;
     _competitorService                    = competitorService;
     _technicalStaffService                = technicalStaffService;
     _commonTechnicalStaffService          = commonTechnicalStaffService;
     _competitionService                   = competitionService;
     _competitionRepresentativeUserService = competitionRepresentativeUserService;
 }
示例#22
0
        //private readonly IConfigurationProvider _configProvider;

        public LegalService
        (
            IParticipationService votingService,
            ILoggingProvider logger,
            ICrmConsumerProvider crmProvider
            //IConfigurationProvider configProvider
        )
        {
            _votingService = votingService;
            _logger        = logger;
            _crmProvider   = crmProvider;
            //_configProvider = configProvider;
        }
示例#23
0
 //Constructor
 public PersonsController(
     IPersonService personService,
     ILogger <PersonsController> logger,
     IProjectService projectService,
     IParticipationService participationService,
     string b2CExtentionApplicationId)
 {
     this.b2CExtentionApplicationId = b2CExtentionApplicationId;
     this.personService             = personService;
     this.projectService            = projectService;
     this.logger = logger;
     this.participationService = participationService;
 }
 public ParticipationsController(
     ILogger <ParticipationsController> logger,
     IParticipationService participationService,
     IAvailabilityService availabilityService,
     IPersonService personService,
     IOptions <WebUrlConfig> options
     )
 {
     this.logger = logger;
     this.participationService = participationService;
     this.availabilityService  = availabilityService;
     this.personService        = personService;
     webUrlConfig = options.Value;
 }
示例#25
0
 public JourneyService
 (
     IParticipationService participationService,
     IParticipantService participantService,
     ILoggingProvider logger,
     ICrmConsumerProvider crmProvider,
     ISchedulerProvider scheduler,
     //IConfigurationProvider configProvider,
     IFailedTransactionService failedTransactionService
 )
 {
     _participationService = participationService;
     _participantService   = participantService;
     _logger      = logger;
     _crmProvider = crmProvider;
     _scheduler   = scheduler;
     //_configProvider = configProvider;
     _failedTransactionService = failedTransactionService;
 }
示例#26
0
        public ParticipantType(IParticipationService participationService)
        {
            var typeName = nameof(Participant);

            Field(x => x.Id, type: typeof(IdGraphType))
            .Description($"Id property from the {typeName} object.");
            Field(x => x.ParticipationId, type: typeof(IdGraphType))
            .Description($"Participation Id property from the {typeName} object.");
            Field(x => x.ConsumerId, type: typeof(StringGraphType))
            .Description($"Consumer Id property from the {typeName} object.");
            Field(x => x.EmailHash, type: typeof(StringGraphType))
            .Description($"Email Hash property from the {typeName} object.");
            Field(x => x.CreatedDate, type: typeof(DateTimeOffsetGraphType))
            .Description($"Created date property from the {typeName} object.");
            Field(x => x.ModifiedDate, type: typeof(DateTimeOffsetGraphType))
            .Description($"Modified date property from the {typeName} object.");
            Field <ParticipationType>(
                "participation",
                resolve: context => participationService.GetParticipation(context.Source.ParticipationId.Value)
                );
        }
        public FailedTransactionType(IParticipationService participationService)
        {
            var typeName = nameof(FailedTransaction);

            Field(x => x.Id, type: typeof(IdGraphType))
            .Description($"Id property from the {typeName} object.");
            Field(x => x.ParticipationId, type: typeof(IdGraphType))
            .Description($"Participation Id property from the {typeName} object.");
            Field(x => x.TermsConsent, type: typeof(BooleanGraphType))
            .Description($"Terms Content status property from the {typeName} object.");
            Field(x => x.NewsletterOptin, type: typeof(BooleanGraphType))
            .Description($"Newsletter optin status property from the {typeName} object.");
            Field(x => x.CreatedDate, type: typeof(DateTimeOffsetGraphType))
            .Description($"Created date property from the {typeName} object.");
            Field(x => x.ModifiedDate, type: typeof(DateTimeOffsetGraphType))
            .Description($"Modified date property from the {typeName} object.");
            Field <ParticipationType>(
                "participation",
                resolve: context => participationService.GetParticipation(context.Source.ParticipationId.Value)
                );
        }
        public ParticipationsController()
        {
            var _unitOfWork = new UnitOfWork();

            _participationService = new ParticipationService(_unitOfWork);
        }
示例#29
0
 public AdminController(IParticipationService participationService, ICommonTechnicalStaffService commonTechnicalStaffService)
 {
     _participationService = participationService;
     _commonTechnicalStaffService = commonTechnicalStaffService;
 }
示例#30
0
        public AppMutation(
            ISiteService siteService,
            IParticipationService participationService,
            IParticipantService participantService,
            IFailedTransactionService failedTransactionService)
        {
            Field <BooleanGraphType>(
                "createSite",
                arguments: new QueryArguments(new QueryArgument <NonNullGraphType <SiteInputType> > {
                Name = "site"
            }),
                resolve: context =>
            {
                var site = context.GetArgument <SiteDto>("site");
                return(siteService.CreateSite(site));
            }
                );

            Field <BooleanGraphType>(
                "updateSite",
                arguments: new QueryArguments(
                    new QueryArgument <NonNullGraphType <SiteInputType> > {
                Name = "site"
            },
                    new QueryArgument <NonNullGraphType <IdGraphType> > {
                Name = "siteId"
            }),
                resolve: context =>
            {
                var site   = context.GetArgument <SiteDto>("site");
                var siteId = context.GetArgument <Guid>("siteId");

                var dbSite = siteService.GetSite(siteId);
                if (dbSite == null)
                {
                    context.Errors.Add(new ExecutionError("Couldn't find site in db."));
                    return(null);
                }

                return(siteService.UpdateSite(site));
            }
                );

            Field <BooleanGraphType>(
                "deleteSite",
                arguments: new QueryArguments(new QueryArgument <NonNullGraphType <IdGraphType> > {
                Name = "siteId"
            }),
                resolve: context =>
            {
                var siteId = context.GetArgument <Guid>("siteId");
                var site   = siteService.GetSite(siteId);
                if (site == null)
                {
                    context.Errors.Add(new ExecutionError("Couldn't find site in db."));
                    return(null);
                }

                siteService.DeleteSite(siteId);
                return($"The site with the id: {siteId} has been successfully deleted from db.");
            }
                );
        }
 public UserPanelController(IDbContext dbContext, IParticipationService participateService, ITeamColorService teamColorService)
 {
     _dbContext = dbContext;
     _participationService = participateService;
     _teamColorService = teamColorService;
 }
 public ParticipationController(IParticipationService participationService)
 {
     _participationService = participationService;
 }
 public SurveyService(IParticipationService participationService)
 {
     _participationService = participationService;
 }
示例#34
0
 public TestController(IParticipationService participationService, ITechnicalStaffService technicalStaffService, ICompetitionService competitionService)
 {
     _participationService = participationService;
     _technicalStaffService = technicalStaffService;
     _competitionService = competitionService;
 }
 public ParticipationsController(IParticipationService roleservice)
 {
     _participationService = roleservice;;
 }
示例#36
0
        public AppQuery(
            ISiteService siteService,
            IParticipationService participationService,
            IParticipantService participantService,
            IFailedTransactionService failedTransactionService)
        {
            Field <ListGraphType <SiteType> >(
                "sitesPaged",
                arguments: new QueryArguments(
                    new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "pageNumber"
            },
                    new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "pageSize"
            }),
                resolve: context =>
            {
                var pageNumber = context.GetArgument <int>("pageNumber");
                var pageSize   = context.GetArgument <int>("pageSize");
                return(siteService.GetSitesPaged(pageNumber, pageSize));
            }
                );

            Field <SiteType>(
                "site",
                arguments: new QueryArguments(
                    new QueryArgument <IdGraphType> {
                Name = "siteId"
            },
                    new QueryArgument <StringGraphType> {
                Name = "siteCulture"
            },
                    new QueryArgument <StringGraphType> {
                Name = "siteDomain"
            }
                    ),
                resolve: context =>
            {
                Guid id = Guid.Empty;
                if (context.GetArgument <string>("siteId") != null &&
                    !Guid.TryParse(context.GetArgument <string>("siteId"), out id))
                {
                    context.Errors.Add(new ExecutionError("Wrong value for guid id"));
                    return(null);
                }
                if (context.GetArgument <string>("siteId") != null)
                {
                    return(siteService.GetSite(id));
                }

                var culture = context.GetArgument <string>("siteCulture");
                if (!string.IsNullOrEmpty(culture))
                {
                    return(siteService.GetSiteByCulture(culture));
                }

                var domain = context.GetArgument <string>("siteDomain");
                if (!string.IsNullOrEmpty(domain))
                {
                    return(siteService.GetSiteByDomain(domain));
                }

                context.Errors.Add(new ExecutionError("Please provide at least one parameter."));
                return(null);
            }
                );
        }
 public UserPanelController(IDbContext dbContext, IParticipationService participateService, ITeamColorService teamColorService)
 {
     _dbContext            = dbContext;
     _participationService = participateService;
     _teamColorService     = teamColorService;
 }
示例#38
0
 public AdminController(IParticipationService participationService, ICommonTechnicalStaffService commonTechnicalStaffService)
 {
     _participationService        = participationService;
     _commonTechnicalStaffService = commonTechnicalStaffService;
 }
 public ParticipationController(IParticipationService participationService, IHubNotifier hubNotifier)
 {
     _participationService = participationService;
     _hubNotifier          = hubNotifier;
 }
 public EventService() : base(utk)
 {
     ParticipationService = new ParticipationService();
     UserService          = new UserService();
 }