Esempio n. 1
0
        public void Setup()
        {
            var connection = ServiceTestHelper.GetDatabaseConnection();

            service = new LearningResourceReferenceDataService(connection);

            testHelper = new CompetencyLearningResourcesTestHelper(connection);
        }
 public void SetUp()
 {
     learningHubApiClient = A.Fake <ILearningHubApiClient>();
     learningResourceReferenceDataService = A.Fake <ILearningResourceReferenceDataService>();
     logger = A.Fake <ILogger <ILearningHubResourceService> >();
     learningHubResourceService = new LearningHubResourceService(
         learningHubApiClient,
         learningResourceReferenceDataService,
         logger
         );
 }
Esempio n. 3
0
 public ActionPlanService(
     ICompetencyLearningResourcesDataService competencyLearningResourcesDataService,
     ILearningLogItemsDataService learningLogItemsDataService,
     IClockService clockService,
     ILearningHubApiClient learningHubApiClient,
     ISelfAssessmentDataService selfAssessmentDataService,
     IConfiguration config,
     ILearningResourceReferenceDataService learningResourceReferenceDataService
     )
 {
     this.competencyLearningResourcesDataService = competencyLearningResourcesDataService;
     this.learningLogItemsDataService            = learningLogItemsDataService;
     this.clockService              = clockService;
     this.learningHubApiClient      = learningHubApiClient;
     this.selfAssessmentDataService = selfAssessmentDataService;
     this.config = config;
     this.learningResourceReferenceDataService = learningResourceReferenceDataService;
 }
Esempio n. 4
0
        public void Setup()
        {
            genericCatalogue = Builder <Catalogue> .CreateNew().With(c => c.Name = "Generic catalogue").Build();

            clockService = A.Fake <IClockService>();
            competencyLearningResourcesDataService = A.Fake <ICompetencyLearningResourcesDataService>();
            learningLogItemsDataService            = A.Fake <ILearningLogItemsDataService>();
            learningHubResourceService             = A.Fake <ILearningHubResourceService>();
            selfAssessmentDataService            = A.Fake <ISelfAssessmentDataService>();
            learningResourceReferenceDataService = A.Fake <ILearningResourceReferenceDataService>();
            config = A.Fake <IConfiguration>();

            actionPlanService = new ActionPlanService(
                competencyLearningResourcesDataService,
                learningLogItemsDataService,
                clockService,
                learningHubResourceService,
                selfAssessmentDataService,
                config,
                learningResourceReferenceDataService
                );
        }