示例#1
0
        public When_Provider_Controller_AddProvider_Post_Is_Called()
        {
            var providerService = Substitute.For <IProviderService>();

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

            var viewModel = new AddProviderViewModel
            {
                UkPrn = 123,
                Name  = "ProviderName"
            };

            _result = controllerWithClaims.AddProvider(viewModel);
        }