aspnetcore/test
Doug Bunting 53857d052f
Add BasicApi and BasicViews apps
- #7805
- make initial copy of apps from aspnet/Performance repo
  - add apps to solution
  - add Readme for the benchmark apps
- update BasicApi app to actually do authentication and authorization
  - bug in the ported app
- refactor `Main` methods and add `CreateWebHostBuilder(...)` methods
- change projects to understand `$(BenchmarksTargetFramework)`
  - use NuGet.org EF packages to avoid changing the Universe build graph
- use SQLite instead of LocalDb by default
  - remove unnecessary appsettings.json files and JSON configuration support
- add EF migrations
  - (greatly) reduce startup times compared to creating / deleting databases
- add MySql, PostgreSQL, and SqlServer support
  - load BasicApi data in a `DbContext.OnModelCreating(...)` override
    - no longer need seed.sql
  - generalize migrations to support multiple providers
  - use negative seeding indices to work around npgsql/Npgsql.EntityFrameworkCore.PostgreSQL#36
  - work around Pomelo lack of strong name (PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#603)
  - use BenchmarksOnly* properties for EF dependencies
    - see also aspnet/Universe#1224
- drop databases (if SQLite) or migrations (otherwise) in `IApplicationLifetime.ApplicationStopping` handlers
- add functional tests
  - drop SQLite database at end of test run
- add benchmarks automation
  - add anonymous BasicApi action i.e. require no authorization
  - add non-antiforgery BasicViews actions

Address PR comments
- remove `AntiforgeryTestHelper` workarounds
- use `[ApiController]`
- use `ActionResult<Pet>`
- remove unused classes

nits:
- take VS suggestions in added files
- optionally display create and delete SQL scripts for per-database migrations
- merge `InsertData(...)` calls for consistency with most supported EF providers
  - SQLite is the only one that requires separate `INSERT`s and EF does the splitting
2018-06-22 16:41:17 -07:00
..
Microsoft.AspNetCore.Mvc.Abstractions.Test Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.Analyzers.Experimental.Test Ensure analyzer package is referenced by Microsoft.AspNetCore.Mvc 2018-06-19 16:11:47 -07:00
Microsoft.AspNetCore.Mvc.Analyzers.Test Setting up for ApiConventionAttribute analyzers (#7912) 2018-06-20 15:22:53 -07:00
Microsoft.AspNetCore.Mvc.ApiExplorer.Test Add IsRequired and DefaultValue to ApiParameterDescription 2018-06-22 06:51:58 -07:00
Microsoft.AspNetCore.Mvc.Core.Test Throw if the type parameter for ActionResult<T> is an action result (#7942) 2018-06-21 07:51:12 -07:00
Microsoft.AspNetCore.Mvc.Core.TestCommon DataAnnotations of Enum values use DataAnnotationLocalizerProvider 2018-05-25 16:00:00 -07:00
Microsoft.AspNetCore.Mvc.Cors.Test Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.DataAnnotations.Test DataAnnotations of Enum values use DataAnnotationLocalizerProvider 2018-05-25 16:00:00 -07:00
Microsoft.AspNetCore.Mvc.Formatters.Json.Test Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.FunctionalTests Add BasicApi and BasicViews apps 2018-06-22 16:41:17 -07:00
Microsoft.AspNetCore.Mvc.IntegrationTests Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.Localization.Test DataAnnotations of Enum values use DataAnnotationLocalizerProvider 2018-05-25 16:00:00 -07:00
Microsoft.AspNetCore.Mvc.Razor.Test Fix up error message when compilation references are missing 2018-06-18 09:20:08 -07:00
Microsoft.AspNetCore.Mvc.RazorPages.Test Allow IgnoreAntiForgeryToken applied on Razor Page models to work 2018-06-13 11:59:47 -07:00
Microsoft.AspNetCore.Mvc.TagHelpers.Test Fix up a few pieces for the fallback integrity check feature. 2018-06-20 16:10:52 -07:00
Microsoft.AspNetCore.Mvc.Test Ensure analyzer package is referenced by Microsoft.AspNetCore.Mvc 2018-06-19 16:11:47 -07:00
Microsoft.AspNetCore.Mvc.TestDiagnosticListener
…
Microsoft.AspNetCore.Mvc.ViewFeatures.Test Prevent null refs in some simple cases in CachedExpressionCompiler 2018-05-29 11:09:48 -07:00
Microsoft.AspNetCore.Mvc.Views.TestCommon Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Microsoft.AspNetCore.Mvc.WebApiCompatShimTest Cleanup TestCommon 2018-05-18 10:45:57 -07:00
WebSites Add IsRequired and DefaultValue to ApiParameterDescription 2018-06-22 06:51:58 -07:00
Directory.Build.props Remove `xUnit1026` workaround in test projects 2018-06-08 15:24:36 -07:00
MvcTests.ruleset
…