public When_Provider_Controller_CreateProviderDetail_Is_Called_With_SubmitAction_SaveSection_And_CdfProvider_Is_Yes()
        {
            var providerService = Substitute.For <IProviderService>();

            var providerController   = new ProviderController(providerService, new MatchingConfiguration());
            var controllerWithClaims = new ClaimsBuilder <ProviderController>(providerController).Build();

            _result = controllerWithClaims.CreateProviderDetailAsync(_viewModel).GetAwaiter().GetResult();
        }
        public When_Provider_Controller_CreateProviderDetail_Is_Called_With_SubmitAction_SaveAndAddVenue()
        {
            _providerService = Substitute.For <IProviderService>();

            var providerController   = new ProviderController(_providerService, new MatchingConfiguration());
            var controllerWithClaims = new ClaimsBuilder <ProviderController>(providerController).Build();

            _providerService.CreateProviderAsync(Arg.Any <CreateProviderDetailViewModel>())
            .Returns(1);

            _result = controllerWithClaims.CreateProviderDetailAsync(new CreateProviderDetailViewModel
            {
                SubmitAction = "SaveAndAddVenue"
            }).GetAwaiter().GetResult();
        }