public ControllerEndpointFiltersTest(MvcTestFixture <StartupForEndpointFilters> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
 }
Esempio n. 2
0
    public RazorPageModelTest(MvcTestFixture <RazorPagesWebSite.StartupWithoutEndpointRouting> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 3
0
    protected JsonInputFormatterTestBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 4
0
    public LinkParserTest(MvcTestFixture <RoutingWebSite.StartupForLinkGenerator> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
    public RespectBrowserAcceptHeaderTests(MvcTestFixture <FormatterWebSite.StartupWithRespectBrowserAcceptHeader> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 6
0
    public RequestSizeLimitTest(MvcTestFixture <BasicWebSite.StartupRequestLimitSize> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
    public AuthMiddlewareUsingRequireAuthTest(MvcTestFixture <SecurityWebSite.StartupWithRequireAuth> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 8
0
 public AsyncDisposalTest(MvcTestFixture <BasicWebSite.Startup> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client  = Factory.CreateDefaultClient();
 }
    protected RequestServicesTestBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 10
0
    public RoutingFallbackTest(MvcTestFixture <RoutingWebSite.StartupForFallback> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 11
0
    protected AuthMiddlewareAndFilterTestBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 12
0
 public XmlDataContractSerializerFormattersWrappingTest(MvcTestFixture <Startup> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(builder => builder.UseStartup <Startup>());
     Client  = Factory.CreateDefaultClient();
 }
    protected ConsumesAttributeTestsBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 14
0
 public RoutingGroupsTests(MvcTestFixture <StartupForGroups> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
 }
Esempio n. 15
0
 public GlobalAuthorizationFilterUseMvcTest(MvcTestFixture <SecurityWebSite.StartupWithGlobalDenyAnonymousFilterWithUseMvc> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client  = Factory.CreateDefaultClient();
 }
Esempio n. 16
0
 public RoutingDynamicTest(MvcTestFixture <RoutingWebSite.StartupForDynamic> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client  = Factory.CreateDefaultClient();
 }
    protected RoutingWithoutRazorPagesTestsBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }