예제 #1
0
            protected override void AdditionalSetup()
            {
                _settingsModel = new OdsInstanceSettingsModel
                {
                    LearningStandardsModel = new LearningStandardsModel
                    {
                        ApiKey    = ApiKey,
                        ApiSecret = ApiSecret
                    }
                };

                ApiModeProvider
                .Setup(x => x.GetApiMode())
                .Returns(ApiMode.Sandbox);

                ApiConnectionInformationProvider
                .Setup(x => x.GetConnectionInformationForEnvironment(CloudOdsEnvironment.Production))
                .ReturnsAsync(new OdsApiConnectionInformation("Ods Instance", ApiMode.Sandbox)
                {
                    ApiServerUrl = ProductionUrl
                });

                LearningStandardsSetupCommand.Setup(x => x.Execute(It.IsAny <AcademicBenchmarkConfig>()))
                .Returns(Task.CompletedTask);

                LearningStandardsJob.Setup(x => x.EnqueueJob(It.IsAny <LearningStandardsJobContext>()));
            }
예제 #2
0
            protected override void AdditionalSetup()
            {
                InstanceContext.Id   = _instanceContext.Id;
                InstanceContext.Name = _instanceContext.Name;

                _learningStandardsModel = new LearningStandardsModel
                {
                    ApiKey    = ApiKey,
                    ApiSecret = ApiSecret
                };

                ApiModeProvider
                .Setup(x => x.GetApiMode())
                .Returns(ApiMode.DistrictSpecific);

                ApiConnectionInformationProvider
                .Setup(x => x.GetConnectionInformationForEnvironment())
                .ReturnsAsync(new OdsApiConnectionInformation(_instanceContext.Name, ApiMode.DistrictSpecific)
                {
                    ApiServerUrl = ProductionUrl
                });

                LearningStandardsSetupCommand.Setup(x => x.Execute(It.IsAny <AcademicBenchmarkConfig>()))
                .Returns(Task.CompletedTask);

                LearningStandardsJob.Setup(x => x.EnqueueJob(It.IsAny <LearningStandardsJobContext>()));
            }
예제 #3
0
            protected override void AdditionalSetup()
            {
                ApiModeProvider
                .Setup(x => x.GetApiMode())
                .Returns(ApiMode.Sandbox);

                ApiConnectionInformationProvider
                .Setup(x => x.GetConnectionInformationForEnvironment())
                .ReturnsAsync(new OdsApiConnectionInformation("Ods Instance", ApiMode.Sandbox)
                {
                    ApiServerUrl = ProductionUrl
                });

                LearningStandardsJob.Setup(x => x.EnqueueJob(It.IsAny <LearningStandardsJobContext>()));
            }
예제 #4
0
            protected override void AdditionalSetup()
            {
                InstanceContext.Id   = _instanceContext.Id;
                InstanceContext.Name = _instanceContext.Name;

                ApiModeProvider
                .Setup(x => x.GetApiMode())
                .Returns(ApiMode.YearSpecific);

                ApiConnectionInformationProvider
                .Setup(x => x.GetConnectionInformationForEnvironment())
                .ReturnsAsync(new OdsApiConnectionInformation(_instanceContext.Name, ApiMode.YearSpecific)
                {
                    ApiServerUrl = ProductionUrl
                });

                LearningStandardsJob.Setup(x => x.EnqueueJob(It.IsAny <LearningStandardsJobContext>()));
            }