public async Task <ActionResult> LearningStandards(LearningStandardsViewModel model)
        {
            var learningStandardsModel = new LearningStandardsModel
            {
                ApiKey    = model.ApiKey,
                ApiSecret = model.ApiSecret
            };

            var result = await _learningStandardsValidator.ValidateAsync(learningStandardsModel);

            if (!result.IsValid)
            {
                var errorMessages = result.Errors.Select(x => new { x.ErrorMessage });
                Response.StatusCode = (int)HttpStatusCode.BadRequest;
                return(JsonResult(new { Result = new { Errors = errorMessages } }));
            }

            await _learningStandardsSetupCommand.Execute(
                new AcademicBenchmarkConfig
            {
                ApiKey     = model.ApiKey,
                ApiSecret  = model.ApiSecret,
                OdsApiMode = CloudOdsAdminAppSettings.Instance.Mode
            });

            await RunLearningStandardsJob();

            return(Ok());
        }
            protected override void AdditionalSetup()
            {
                InstanceContext.Id   = _instanceContext.Id;
                InstanceContext.Name = _instanceContext.Name;

                _learningStandardsModel = new LearningStandardsViewModel
                {
                    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>()));
            }