Beispiel #1
0
 public WhenGettingFileUploadStartFixture()
 {
     _request = new SelectAddDraftApprenticeshipJourneyRequest {
         ProviderId = ProviderId
     };
     Sut = new CohortController(Mock.Of <IMediator>(), Mock.Of <IModelMapper>(), Mock.Of <ILinkGenerator>(), Mock.Of <ICommitmentsApiClient>(), Mock.Of <IFeatureTogglesService <ProviderFeatureToggle> >(), Mock.Of <IEncodingService>());
 }
Beispiel #2
0
        public IActionResult FileUploadStart(SelectAddDraftApprenticeshipJourneyRequest request)
        {
            var model = new FileUploadStartViewModel {
                ProviderId = request.ProviderId
            };

            return(View(model));
        }
Beispiel #3
0
        public IActionResult SelectDraftApprenticeshipsEntryMethod(SelectAddDraftApprenticeshipJourneyRequest request)
        {
            var model = new SelectAddDraftApprenticeshipJourneyViewModel {
                ProviderId = request.ProviderId
            };

            return(View(model));
        }
Beispiel #4
0
        public IActionResult SelectAddDraftApprenticeshipJourney(SelectAddDraftApprenticeshipJourneyRequest request)
        {
            var model = new SelectAddDraftApprenticeshipJourneyViewModel
            {
                ProviderId            = request.ProviderId,
                IsBulkUploadV2Enabled = _featureTogglesService.GetFeatureToggle(ProviderFeature.BulkUploadV2WithoutPrefix).IsEnabled
            };

            return(View(model));
        }
 public WhenGettingSelectAddDraftApprenticeshipJourneyFixture()
 {
     _request = new SelectAddDraftApprenticeshipJourneyRequest {
         ProviderId = ProviderId
     };
     _featureToggleServiceMock = new Mock <IFeatureTogglesService <ProviderFeatureToggle> >();
     _featureToggleServiceMock.Setup(x => x.GetFeatureToggle(ProviderFeature.BulkUploadV2WithoutPrefix)).Returns(new ProviderFeatureToggle {
         IsEnabled = false
     });
     Sut = new CohortController(Mock.Of <IMediator>(), Mock.Of <IModelMapper>(), Mock.Of <ILinkGenerator>(), Mock.Of <ICommitmentsApiClient>(), _featureToggleServiceMock.Object, Mock.Of <IEncodingService>());
 }