Go to file
Doug Bunting d03a851ab3 Use `MvcTextFixture` as much as possible
- #3066
  - reduce `TestServer` -> `PhysicalFileProvider` -> `FileSystemWatcher` count enough to run with Core CLR on Linux
- remove use of `HttpClient.DefaultRequestHeaders`; any client change affects other tests
- remove use of `RequestBuilder` class; creates a per-test `HttpClient` and requires the `TestServer`
- updated a few expectations because `CommonTestEncoder` does JavaScript a bit differently
  - "JavaScriptEncode[[...]]" -> "JavaScriptStringEncode[[...]]"
- side benefit: xUnit reports functional tests execute for only ~12.4s; was >30s before this change

Infrastructure: Enhance `MvcTestFixture`
- handle `ConfigureServices()` methods that are not `void`
- handle `Configure(IApplicationBuilder, ILoggerFactory)`
- ensure server is initialized with consistent `CurrentCulture` and `CurrentUICulture`
- add `FilteredDefaultAssemblyProviderFixture<TStartup>` and `MvcEncodedTestFixture<TStartup>`
  - add `MvcTextFixture.AddAdditionalServices()` extension point supporting these

- do not expose the `TestServer`; an anti-pattern for tests to manipulate the server
- update class names to match containing files
- use existing `TestApplicationEnvironment`
  - apply some `MvcTestFixture` improvements to the shared `TestApplicationEnvironment` class
- remove unused methods from `TestHelper`

nits:
- touched-up some leftover `_app` &c declarations to be more explicit and minimize `using`s
- moved statements into correct sections of methods in `RoutingTests`
- removed `TestLoggerFactory` and related classes from `TagHelperSampleTest`
2015-09-15 10:18:27 -07:00
samples React to Razor `TargetElementAttribute` rename. 2015-09-13 19:14:30 -07:00
src Throw an exception if layouts have circular references. 2015-09-14 12:57:06 -07:00
test Use `MvcTextFixture` as much as possible 2015-09-15 10:18:27 -07:00
.gitattributes
.gitignore Add project.lock.json to .gitignore 2015-02-15 09:56:35 -08:00
.travis.yml Update `.travis.yml` to run on OSX. 2015-09-10 12:45:29 -07:00
CONTRIBUTING.md Update Home master -> Home dev 2015-05-12 11:26:36 -07:00
LICENSE.txt Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
Mvc.NoFun.sln React to BufferedHtmlContent changes 2015-09-13 13:51:53 -07:00
Mvc.sln Do not build `TestCommon` project in Visual Studio 2015-09-10 11:55:59 -07:00
NuGet.Config Make ValueProviderResult a string-ish struct 2015-08-21 11:02:40 -07:00
README.md Tables aren't cool anymore 2015-04-01 16:18:33 -07:00
Settings.StyleCop
appveyor.yml Turn on parallel AppVeyor builds 2015-04-30 21:57:38 -07:00
build.cmd Update 'build.cmd' to pull Sake from v2 NuGet feed. 2015-08-20 15:38:45 -07:00
build.sh Update 'build.sh' to pull Sake from v2 NuGet feed. 2015-08-20 20:47:50 -07:00
global.json Update global.json, sources=>projects 2015-04-02 09:20:21 -07:00
makefile.shade

README.md

ASP.NET MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET 5 includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.