protected AuthMiddlewareAndFilterTestBase(MvcTestFixture <TStartup> fixture)
        {
            var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

            Client = factory.CreateDefaultClient();
        }
예제 #2
0
        protected RoutingWithoutRazorPagesTestsBase(MvcTestFixture <TStartup> fixture)
        {
            var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

            Client = factory.CreateDefaultClient();
        }
 public SerializableErrorTests(MvcTestFixture <XmlFormattersWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #4
0
 public ViewEngineTests(MvcTestFixture <RazorWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #5
0
 public ViewEngineTests(MvcTestFixture <RazorWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #6
0
 public ConsumesAttributeTests(MvcTestFixture <BasicWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #7
0
 public RazorPagesWithEndpointRoutingTest(MvcTestFixture <RazorPagesWebSite.StartupWithEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
 public GlobalAuthorizationFilterTest(MvcTestFixture <SecurityWebSite.StartupWithGlobalDenyAnonymousFilter> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client  = Factory.CreateDefaultClient();
 }
예제 #9
0
 public WebApiCompatShimActionResultTest(MvcTestFixture <WebApiCompatShimWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #10
0
 public TempDataPropertyTest(MvcTestFixture <BasicWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #11
0
 public ApplicationModelTest(MvcTestFixture <ApplicationModelWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #12
0
 public BasicTests(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #13
0
 public XmlSerializerFormattersWrappingTest(MvcTestFixture <Startup> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(builder => builder.UseStartup <Startup>());
     Client  = Factory.CreateDefaultClient();
 }
예제 #14
0
 public DirectivesTest(MvcTestFixture <RazorWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #15
0
        public RazorPageModelTest(MvcTestFixture <RazorPagesWebSite.StartupWithoutEndpointRouting> fixture)
        {
            var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

            Client = factory.CreateDefaultClient();
        }
예제 #16
0
        protected RequestServicesTestBase(MvcTestFixture <TStartup> fixture)
        {
            var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

            Client = factory.CreateDefaultClient();
        }
 public TagHelpersFromServicesTest(MvcTestFixture <ControllersFromServicesWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #18
0
 public FlushPointTest(MvcTestFixture <RazorWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #19
0
파일: CorsTests.cs 프로젝트: yelau/Mvc
 public CorsTests(MvcTestFixture <CorsWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #20
0
 public ApiExplorerTest(MvcTestFixture <ApiExplorerWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #21
0
 public RazorPagesWithBasePathTest(MvcTestFixture <RazorPagesWebSite.StartupWithBasePath> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #22
0
 public RazorPagesTest(MvcTestFixture <RazorPagesWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
예제 #23
0
 public OutputFormatterTest(MvcTestFixture <BasicWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
        public HtmlGenerationWithCultureTest(MvcTestFixture <StartupWithCultureReplace> fixture)
        {
            var factory = fixture.WithWebHostBuilder(builder => builder.UseStartup <StartupWithCultureReplace>());

            Client = factory.CreateDefaultClient();
        }
예제 #25
0
 public RoutingWithoutRazorPagesTests(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
     : base(fixture)
 {
 }
예제 #26
0
 public WebApiCompatShimBasicTest(MvcTestFixture <WebApiCompatShimWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
 public DoNotRespectBrowserAcceptHeaderTests(MvcTestFixture <FormatterWebSite.Startup> fixture)
 {
     Client = fixture.Client;
 }
 public SimpleWithWebApplicationBuilderTests(MvcTestFixture <SimpleWebSiteWithWebApplicationBuilder.FakeStartup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
예제 #29
0
 public ComponentRenderingFunctionalTests(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Factory = fixture;
     Client  = Client ?? CreateClient(fixture);
 }
예제 #30
0
        protected ConsumesAttributeTestsBase(MvcTestFixture <TStartup> fixture)
        {
            var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

            Client = factory.CreateDefaultClient();
        }