public FilterQuestionsController(ILogService logService, IMapper mapper, ISessionService sessionService, IAssessmentService apiService)
     : base(sessionService)
 {
     this.logService = logService;
     this.mapper     = mapper;
     this.apiService = apiService;
 }
Esempio n. 2
0
 public TeacherService(ITeacherRepository teacherRepository, IStudentService studentService, ICourseRepository courseRepository, IAssessmentService assessmentService)
 {
     _studentService    = studentService;
     _assessmentService = assessmentService;
     _courseRepository  = courseRepository;
     _teacherRepository = teacherRepository;
 }
Esempio n. 3
0
        public IndexTests()
        {
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();

            controller = new HomeController(sessionService, assessmentService);
        }
Esempio n. 4
0
 public ResultsController(ILogService logService, IMapper mapper, ISessionService sessionService, IResultsService resultsService, IAssessmentService apiService)
     : base(sessionService)
 {
     this.logService     = logService;
     this.mapper         = mapper;
     this.resultsService = resultsService;
     this.apiService     = apiService;
 }
        public LoadSessionPostTests()
        {
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();
            logService        = A.Fake <ILogService>();

            controller = new TestController(logService, sessionService, assessmentService);
        }
 public AssessmentController(ILogService logService, IMapper mapper, IAssessmentService apiService,
                             ISessionService sessionService, NotifyOptions notifyOptions)
     : base(sessionService)
 {
     this.logService    = logService;
     this.mapper        = mapper;
     this.apiService    = apiService;
     this.notifyOptions = notifyOptions;
 }
Esempio n. 7
0
        public IndexGetTests()
        {
            mapper            = A.Fake <IMapper>();
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();
            logService        = A.Fake <ILogService>();

            controller = new FilterQuestionsController(logService, mapper, sessionService, assessmentService);
        }
Esempio n. 8
0
        public AssessmentTestBase()
        {
            mapper            = A.Fake <IMapper>();
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();
            logService        = A.Fake <ILogService>();
            notifyOptions     = A.Fake <NotifyOptions>();

            assessmentController = new AssessmentController(logService, mapper, assessmentService, sessionService, notifyOptions);
        }
        public AssessmentServiceTests()
        {
            logger                   = A.Fake <ILogger <AssessmentService> >();
            notifyOptions            = A.Fake <NotifyOptions>();
            assessmentApiService     = A.Fake <IAssessmentApiService>();
            sessionIdToCodeConverter = A.Fake <ISessionIdToCodeConverter>();
            sessionService           = A.Fake <ISessionService>();

            assessmentService = new AssessmentService(logger, notifyOptions, assessmentApiService, sessionIdToCodeConverter, sessionService);
        }
Esempio n. 10
0
        public IndexTests()
        {
            mapper            = A.Fake <IMapper>();
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();
            resultsService    = A.Fake <IResultsService>();
            logService        = A.Fake <ILogService>();

            controller = new ResultsController(logService, mapper, sessionService, resultsService, assessmentService);
        }
        public HandlerTests()
        {
            var assessment = new Assessment()
            {
                GivenName = "Unit", FamilyName = "Test"
            };

            _assessmentService = Substitute.For <IAssessmentService>();
            _assessmentService.GetAssessmentByPatientId(Arg.Any <int>()).Returns(assessment);
        }
Esempio n. 12
0
        public RolesTests()
        {
            mapper            = A.Fake <IMapper>();
            sessionService    = A.Fake <ISessionService>();
            assessmentService = A.Fake <IAssessmentService>();
            resultsService    = A.Fake <IResultsService>();
            testCategory      = "testCategory";
            logService        = A.Fake <ILogService>();

            controller = new ResultsController(logService, mapper, sessionService, resultsService, assessmentService);
        }
Esempio n. 13
0
 public BulkAssessmentLoader(ICsvHelperService <AssessmentCsvRecordRequest, CsvResponseModel <AssessmentCsvRecordResponse>, AssessmentCsvRecordResponse> csvService,
                             IAssessmentService assessmentService,
                             IBlobStorageService blobStorageService,
                             IDocumentUploadHistoryService documentUploadHistoryService,
                             ILogger <BulkAssessmentLoader> logger) : base(blobStorageService, documentUploadHistoryService)
 {
     _csvService         = csvService;
     _assessmentService  = assessmentService;
     _blobStorageService = blobStorageService;
     _logger             = logger;
 }
Esempio n. 14
0
 public ReportController(IAnalysisService analysisService,
                         IPaciScreenSecurityService securityService,
                         IAssessmentService assessmentService,
                         ICatalogService catalogService,
                         IPaciService paciService)
 {
     _analysisService   = analysisService;
     _securityService   = securityService;
     _assessmentService = assessmentService;
     _catalogService    = catalogService;
     _paciService       = paciService;
 }
        public override void Setup()
        {
            CsvService                   = Substitute.For <ICsvHelperService <AssessmentCsvRecordRequest, CsvResponseModel <AssessmentCsvRecordResponse>, AssessmentCsvRecordResponse> >();
            AssessmentService            = Substitute.For <IAssessmentService>();
            BlobService                  = Substitute.For <IBlobStorageService>();
            Logger                       = Substitute.For <ILogger <BulkAssessmentLoader> >();
            DocumentUploadHistoryService = Substitute.For <IDocumentUploadHistoryService>();

            BlobUniqueRef = Guid.NewGuid();

            Request = new BulkProcessRequest
            {
                AoUkprn             = 1234567891,
                BlobFileName        = "assessments.csv",
                BlobUniqueReference = BlobUniqueRef,
                DocumentType        = DocumentType.Assessments,
                FileType            = FileType.Csv,
                PerformedBy         = "TestUser",
            };
        }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountService"/> class.
 /// </summary>
 /// <param name="tableStorage">The tableStorage<see cref="ITableStorage"/>.</param>
 /// <param name="schoolService">The schoolService<see cref="ISchoolService"/>.</param>
 /// <param name="mapper">The mapper<see cref="IMapper"/>.</param>
 /// <param name="studentService">The studentService<see cref="IStudentService"/>.</param>
 /// <param name="classService">The classService<see cref="IClassService"/>.</param>
 /// <param name="assessmentService">The assessmentService<see cref="IAssessmentService"/>.</param>
 /// <param name="contentService">The contentService<see cref="IContentService"/>.</param>
 /// <param name="settingService">The settingService<see cref="ISettingService"/>.</param>
 /// <param name="emailService">The emailService<see cref="IEmailService"/>.</param>
 public AccountService(ITableStorage tableStorage,
                       ISchoolService schoolService,
                       IMapper mapper,
                       IStudentService studentService,
                       IClassService classService,
                       IAssessmentService assessmentService,
                       IContentService contentService,
                       ISettingService settingService,
                       IEmailService emailService)
 {
     _tableStorage      = tableStorage;
     _schoolService     = schoolService;
     _mapper            = mapper;
     _studentService    = studentService;
     _classService      = classService;
     _contentService    = contentService;
     _assessmentService = assessmentService;
     _emailService      = emailService;
     _settingService    = settingService;
 }
Esempio n. 17
0
 public AssessmentController(ILogger <ProfileController> logger, IAssessmentService service)
 {
     _logger  = logger;
     _service = service;
 }
Esempio n. 18
0
 /// <summary>
 /// Constructor for creating reference for Training service layer
 /// </summary>
 public AssessmentController(ITrainingService trainingService, IAssessmentService _assessmentService)
 {
     _ITrainingService   = trainingService;
     _IAssessmentService = _assessmentService;
 }
Esempio n. 19
0
 public HomeController(ISessionService sessionService, IAssessmentService assessmentService)
     : base(sessionService)
 {
     this.assessmentService = assessmentService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AssessmentFunction"/> class.
 /// </summary>
 /// <param name="assessmentService">The assessmentService<see cref="IAssessmentService"/>.</param>
 public AssessmentFunction(IAssessmentService assessmentService)
 {
     _assessmentService = assessmentService;
 }
Esempio n. 21
0
 public AssessmentServicesTest()
 {
     _sut = Substitute.For <IAssessmentService>();
 }
 public AssessmentController(ITeacherService teacherService, IAssessmentService assessmentService, IStudentService studentService)
 {
     _studentService    = studentService;
     _assessmentService = assessmentService;
     _teacherService    = teacherService;
 }
Esempio n. 23
0
 public AssessmentController(IAssessmentService assessmentService, IOutputConverter outputConverter)
 {
     _assessmentService = assessmentService;
     _outputConverter   = outputConverter;
 }
 //Constructor
 public AssessmentController()
 {
     this.AssessmentService = new AssessmentService();
 }
 public Handler(IAssessmentService assessmentService)
 {
     _assessmentService = assessmentService;
 }
Esempio n. 26
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AssessmentRuleEngine" /> class.
 /// </summary>
 /// <param name="assessmentService">The assessment service.</param>
 public AssessmentRuleEngine(IAssessmentService assessmentService)
 {
     this.assessmentService = assessmentService;
 }
 public TestController(ILogService logService, ISessionService sessionService, IAssessmentService apiService)
     : base(sessionService)
 {
     this.logService = logService;
     this.apiService = apiService;
 }
 public AssessmentController(IBulkAssessmentLoader bulkAssementProcess, IAssessmentService assessmentService)
 {
     _bulkAssementProcess = bulkAssementProcess;
     _assessmentService   = assessmentService;
 }
Esempio n. 29
0
 public AssessmentController(IExternalDemographicsAPIService externalDemographicsAPIService, IAssessmentService assessmentService)
 {
     _externalDemographicsAPIService = externalDemographicsAPIService;
     _assessmentService = assessmentService;
 }
Esempio n. 30
0
 public AssessmentsController(IAssessmentService assessmentService, IMapper mapper, IAssessmentResponseComposer assessmentResponseComposer)
 {
     _assessmentService          = assessmentService;
     _mapper                     = mapper;
     _assessmentResponseComposer = assessmentResponseComposer;
 }