Example #1
0
 public SurveyService(ICustomerRepository customerRepo, ISurveyRepository surveyRepo
                      , ISurveyTemplateRepository surveyTemplateRepo)
 {
     _customerRepo       = customerRepo;
     _surveyRepo         = surveyRepo;
     _surveyTemplateRepo = surveyTemplateRepo;
 }
Example #2
0
 public SurveyTemplateService(ISurveyTemplateRepository SurveyTemplateRepository, ISurveyQuestionRepository SurveyQuestionRepository,
                              ICorporateAccountRepository corporateAccountRepository, ISurveyQuestionAnswerEditModelFactory SurveyQuestionAnswerEditModelFactory,
                              ISurveyAnswerRepository surveyAnswerRepository)
 {
     _SurveyTemplateRepository             = SurveyTemplateRepository;
     _SurveyQuestionRepository             = SurveyQuestionRepository;
     _corporateAccountRepository           = corporateAccountRepository;
     _SurveyQuestionAnswerEditModelFactory = SurveyQuestionAnswerEditModelFactory;
     _surveyAnswerRepository = surveyAnswerRepository;
 }
 public SurveyTemplateService(IMapper mapper,
                              ISurveyTemplateRepository surveyTemplateRepository,
                              IQuestionTemplateRepository questionTemplateRepository,
                              IFieldDataTemplateRepository fieldDataTemplateRepository,
                              IChoiceOptionTemplateRepository choiceOptionTemplateRepository,
                              IRowTemplateRepository rowTemplateRepository)
 {
     _mapper = mapper;
     _surveyTemplateRepository       = surveyTemplateRepository;
     _questionTemplateRepository     = questionTemplateRepository;
     _fieldDataTemplateRepository    = fieldDataTemplateRepository;
     _choiceOptionTemplateRepository = choiceOptionTemplateRepository;
     _rowTemplateRepository          = rowTemplateRepository;
 }
Example #4
0
 public SurveyService(IMapper mapper,
                      ISurveyRepository surveyRepository,
                      IQuestionRepository questionRepository,
                      IFieldDataRepository fieldDataRepository,
                      IChoiceOptionRepository choiceOptionRepository,
                      IRowRepository rowRepository,
                      ISurveyTemplateRepository surveyTemplateRepository,
                      ISurveyReportService surveyReportService)
 {
     _mapper                   = mapper;
     _surveyRepository         = surveyRepository;
     _questionRepository       = questionRepository;
     _fieldDataRepository      = fieldDataRepository;
     _choiceOptionRepository   = choiceOptionRepository;
     _rowRepository            = rowRepository;
     _surveyTemplateRepository = surveyTemplateRepository;
     _surveyReportService      = surveyReportService;
 }
Example #5
0
 public SurveyTemplateService(ISurveyTemplateRepository surveyTemplateRepo)
 {
     _surveyTemplateRepo = surveyTemplateRepo;
 }
 public SurveyTemplateEditModelValidator(ISurveyTemplateRepository templateRepository)
 {
     _templateRepository = templateRepository;
     RuleFor(x => x.Name).NotNull().WithMessage("required").NotEmpty().WithMessage("required").Must(CheckifNameisUnique).WithMessage("Please select a unique name");
     RuleFor(x => x.Questions).Must((x, y) => !y.IsNullOrEmpty() && y.Any()).WithMessage("select altleast one question");
 }