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

        Client = factory.CreateDefaultClient();
    }
 public XmlOutputFormatterTests(MvcTestFixture <FormatterWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 3
0
 public DefaultValuesTest(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
    protected RequestServicesTestBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 5
0
 public NewtonsoftJsonInputFormatterTest(MvcTestFixture <FormatterWebSite.Startup> fixture)
     : base(fixture)
 {
 }
Esempio n. 6
0
    protected AuthMiddlewareAndFilterTestBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 7
0
 public TagHelpersFromServicesTest(MvcTestFixture <ControllersFromServicesWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
 public VersioningGlobalRoutingTests(MvcTestFixture <VersioningWebSite.StartupWithGlobalRouting> fixture)
     : base(fixture)
 {
 }
 public AsyncEnumerableTestBase(MvcTestFixture <StartupWithJsonFormatter> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 10
0
 public VersioningTests(MvcTestFixture<VersioningWebSite.Startup> fixture)
     : base(fixture)
 {
 }
Esempio n. 11
0
 public HtmlHelperOptionsTest(MvcTestFixture <RazorWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 12
0
 public AntiforgeryAuthTests(MvcTestFixture <Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
    protected ConsumesAttributeTestsBase(MvcTestFixture <TStartup> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
 public AuthMiddlewareAndFilterTest(MvcTestFixture <SecurityWebSite.StartupWithGlobalAuthFilter> fixture)
     : base(fixture)
 {
 }
Esempio n. 15
0
 public FileResultTests(MvcTestFixture <FilesWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 16
0
 public XmlDataContractSerializerFormattersWrappingTest(MvcTestFixture <Startup> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(builder => builder.UseStartup <Startup>());
     Client  = Factory.CreateDefaultClient();
 }
Esempio n. 17
0
 public InputValidationTests(MvcTestFixture <FormatterWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 18
0
 public RequestServicesEndpointRoutingTest(MvcTestFixture <BasicWebSite.Startup> fixture)
     : base(fixture)
 {
 }
Esempio n. 19
0
 public LinkParserTest(MvcTestFixture<RoutingWebSite.StartupForLinkGenerator> fixture)
 {
     var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client = factory.CreateDefaultClient();
 }
Esempio n. 20
0
 public ApiBehaviorTest(MvcTestFixture <BasicWebSite.StartupWithSystemTextJson> fixture)
     : base(fixture)
 {
 }
Esempio n. 21
0
 public GlobalAuthorizationFilterUseMvcTest(MvcTestFixture <SecurityWebSite.StartupWithGlobalDenyAnonymousFilterWithUseMvc> fixture)
 {
     Factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);
     Client  = Factory.CreateDefaultClient();
 }
Esempio n. 22
0
 public ContentNegotiationTest(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
 public XmlSerializerInputFormatterTests(MvcTestFixture <XmlFormattersWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 24
0
 public VersioningTests(MvcTestFixture <VersioningWebSite.StartupWithoutEndpointRouting> fixture)
     : base(fixture)
 {
 }
Esempio n. 25
0
 public RoutingEndpointRoutingWithoutRazorPagesTests(MvcTestFixture <BasicWebSite.Startup> fixture)
     : base(fixture)
 {
 }
 public NonNullableReferenceTypesTest(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 27
0
 public OutputFormatterTest(MvcTestFixture <BasicWebSite.StartupWithoutEndpointRouting> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }
Esempio n. 28
0
 public SystemTextJsonOutputFormatterTest(MvcTestFixture <FormatterWebSite.StartupWithJsonFormatter> fixture)
     : base(fixture)
 {
 }
Esempio n. 29
0
    public RazorPagesViewSearchTest(MvcTestFixture <RazorPagesWebSite.StartupWithoutEndpointRouting> fixture)
    {
        var factory = fixture.Factories.FirstOrDefault() ?? fixture.WithWebHostBuilder(ConfigureWebHostBuilder);

        Client = factory.CreateDefaultClient();
    }
Esempio n. 30
0
 public SimpleTests(MvcTestFixture <SimpleWebSite.Startup> fixture)
 {
     Client = fixture.CreateDefaultClient();
 }