public async Task SetUp()
        {
            QnaDataContext = DataContextHelpers.GetInMemoryDataContext();

            NotRequiredProcessor = new NotRequiredProcessor();
            TagProcessingService = new TagProcessingService(QnaDataContext);
            SetAnswersBase       = new SetAnswersBase(QnaDataContext, NotRequiredProcessor, TagProcessingService, null);

            ApplicationId = Guid.NewGuid();

            ApplicationDataJson = JsonConvert.SerializeObject(new
            {
                OrgType = "OrgType1"
            });

            await QnaDataContext.Applications.AddAsync(new Data.Entities.Application {
                Id = ApplicationId, ApplicationData = ApplicationDataJson
            });

            await QnaDataContext.SaveChangesAsync();

            NextAction = new Next {
                Action = "NextPage", ReturnId = "2"
            };
        }
Exemple #2
0
 public SetAnswersBase(QnaDataContext dataContext, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService, IAnswerValidator answerValidator)
 {
     _dataContext          = dataContext;
     _notRequiredProcessor = notRequiredProcessor;
     _tagProcessingService = tagProcessingService;
     _answerValidator      = answerValidator;
 }
Exemple #3
0
 public ResetSectionAnswersHandler(QnaDataContext dataContext, IMediator mediator, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService)
     : base(dataContext, notRequiredProcessor, tagProcessingService, null)
 {
     _mediator = mediator;
 }
Exemple #4
0
 public SkipPageBySectionNoHandler(QnaDataContext dataContext, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService) : base(dataContext, notRequiredProcessor, tagProcessingService, null)
 {
 }
 public SubmitPageOfFilesHandler(QnaDataContext dataContext, IOptions <FileStorageConfig> fileStorageConfig, IEncryptionService encryptionService, IAnswerValidator answerValidator, IFileContentValidator fileContentValidator, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService) : base(dataContext, notRequiredProcessor, tagProcessingService, answerValidator)
 {
     _fileStorageConfig    = fileStorageConfig;
     _encryptionService    = encryptionService;
     _fileContentValidator = fileContentValidator;
 }
Exemple #6
0
 public ResetPageAnswersHandler(QnaDataContext dataContext, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService) : base(dataContext, notRequiredProcessor, tagProcessingService, null)
 {
 }
Exemple #7
0
 public SetPageAnswersBySectionNoHandler(QnaDataContext dataContext, IAnswerValidator answerValidator, INotRequiredProcessor notRequiredProcessor, ITagProcessingService tagProcessingService) : base(dataContext, notRequiredProcessor, tagProcessingService, answerValidator)
 {
 }