Commit Graph

95 Commits (59d40b8bfb4a3ff9335c027c2534c12b7a8d2d62)

Author SHA1 Message Date
Luke Latham b8ee7c29a2 Document improved support for integration testing (#6086)
* Integration testing topic

Updates

Updates

Updates

Updates

Updates

Update

* Revert "Merge branch 'guardrex/integration-testing-topic' of https://github.com/aspnet/Docs into guardrex/integration-testing-topic"

This reverts commit 0c8de51aad9f1a183df400c0dc0cf84743baf445, reversing
changes made to ba5c3518ebfdd855907a751d181996cd0f7abee7.

* Updates

* Updates

* Add API ref links

* Updates

* Remove preview notice

* Updates

* Updates

Update

Updates

Updates

Updates

Updates

Updates

Updates

Updates

Update

* Updates

* React to feedback

* Update sample package refs to 2.1.0
2018-05-29 15:02:02 -10:00
user135711 2eeb190414 typo (#6619) 2018-05-26 12:57:08 -05:00
user135711 52eccf2ff1 fix null ptr (#6396) 2018-05-12 13:59:25 -10:00
Rick Anderson 7a2b517b72
Update preview to RC1 (#6375)
* remove preview

* rc
2018-05-11 14:03:53 -10:00
reyou 9949ced35a string interpolation added. (#6364) 2018-05-11 12:01:34 -05:00
Luke Latham 7048bb8fbf API link updates (#6149)
* API link updates

Updates

One more!

Fix bookmark

Mo updates

More updates

Updates

Updates

* Update action-return-types.md

* Update index.md

* Update concurrency.md

* Update intro.md

* Update localization.md

* Update search.md
2018-05-02 14:45:06 -05:00
user135711 260297eef4 typo (#6172) 2018-05-02 10:44:29 -05:00
Rick Anderson 288347e571
Razor Pages Filters (#5835)
* WIP Razor Pages Filters

* spelen

* clean up

* clean up

* mvc filters UE edit

* wrok

* wrok

* wrok

* react to feedback

* minor

* minor

* minor

* minor

* minor

* minor

* minor

* minor

* minor

* minor

* minor

* react to feedback

* fix

* fix

* fix

* fix

* fix
2018-04-12 11:29:02 -10:00
Scott Addie b2cdf7ff05
Relocate advanced MVC docs to Web API TOC (#5859) 2018-04-02 15:22:30 -04:00
Jaxel Rojas 6a650b9b1f Update filters.md (#5824) 2018-03-28 19:22:18 -07:00
Rick Anderson e284fae98a
MVC filters don't apply to RP (#5816)
* MVC filters don't apply to RP

* Update filters.md

* Update filters.md

* Update filters.md
2018-03-27 15:35:24 -10:00
Rick Anderson 1e7badc723
fix filters snippet (#5814) 2018-03-27 13:14:23 -10:00
Luke Latham bdb6d7cafc Title, description, and H1 updates (4) (#5745)
* Title, description, and H1 updates (4)

* Updates

* Updates

* Drop gerunds and update link text

* Update

* Update next.md

* Update routing.md
2018-03-21 14:18:35 -10:00
Luke Latham fd653e519b
Get CDN content links on HTTPS protocol (#5736) 2018-03-20 11:32:41 -07:00
Luke Latham 6b0cf1247f Title, description, and H1 updates (2) (#5697)
Updates
2018-03-14 16:51:34 -10:00
Peter Kellner d7e60ae40f replace Post with Put (#5696)
Since post is an insert, it does not make sense to pass in an "id" to a post, but it does to a put.
2018-03-14 19:51:58 -05:00
Luke Latham 16a6c2029a Surface the intro topic in the RP tutorial (#5652)
* Surface the intro topic in the RP tutorial

* Fix topic title

* Few more title updates

* Refactor title

* Title correction
2018-03-11 21:57:36 -05:00
Luke Latham f047169540 Drop [Main] from snippet references (#5547) 2018-02-24 10:08:11 -06:00
Luke Latham 239aa0ba8c Remove PJ files from non-sample projects (#5502) 2018-02-20 10:38:33 -06:00
Luke Latham ab45f0c5d1 IMiddleware/IMiddlewareFactory topic (#5027)
* IMiddleware/IMiddlewareFactory topic

Change middleware topic filename + add crosslink

Update

Updates

* IMiddleware/IMiddlewareFactory topic

Change middleware topic filename + add crosslink

Update

Updates

* Updates

Updates

* React to feedback

* Add conventional middleware activation example
* Use Ninject to make the samp demo a real nonconforming container

* Show the default factory

* React to feedback

* Cut extraneous Ninject bits

* Updates

Update

* React to feedback

* React to feedback

* Use Simple Injector + default IMiddlewareFactory impl

* Updates

* Update

* Revert topic+sample to using the default container

Update

* Updates

* Updates

* Updates

* React to feedback

* Update
2018-01-30 10:53:14 -06:00
Luke Latham abbe642741 Organize metadata (#5296)
Updates
2018-01-29 09:21:31 -06:00
Luke Latham 8e33d0e94e Remove redirected topic files (#5299)
Updates
2018-01-29 09:15:04 -06:00
Luke Latham fa24342f38 Remove smart quotes (#5294) 2018-01-28 15:49:15 -06:00
Luke Latham 313486d76f Taming the savage contraction issue (#5216)
* Form contractions

* Revert two contractions

* Additional reversions

* Additional reversions

* Additional revisions

* Additional revisions

* React to feedback
2018-01-24 09:27:24 -06:00
Luke Latham 31df8fcabf Remove keywords and ms.assetid metadata from ASP.NET Core topics (#5208) 2018-01-19 14:11:45 -06:00
Luke Latham 374ecc35a7 Documenting Options change for 2.0 (#4797)
* Documenting Options change for 2.0

Update

Updates

Updates

* Updates

Fix link

Update TOC entry

Fix redo

Updates

* Update index.md

Simple is banned.

* Factor remaining Options out of Config topic

* React to feedback and updates

Update

Updates

Update metadata

* React to feedback

Update
2017-11-28 14:09:16 -10:00
MaxHorstmann 2855fc2fb8
fix typo 2017-11-26 21:50:29 -05:00
Luke Latham 1c3b4fea85 Fix and update Testing Controllers sample (#4744) 2017-11-16 11:18:00 -10:00
Luke Latham 65d60b9783 LoggerMessage topic (#4697)
* LoggerMessage topic

Updates

Updates

Updates

Update

Updates

Update

* React to feedback

Update

React to feedback

Update

* React to feedback

* Update loggermessage.md

* Updates

Updates

Updates

Update

* React to feedback
2017-11-06 15:41:13 -10:00
Olcay Bayram 63f7bebb60 Adding optional id parameter to area route (#4628) 2017-10-25 10:31:06 -05:00
Scott Addie 912a1efc8f Fix invalid bookmarks (#4570) 2017-10-13 15:50:30 -05:00
Michael DePouw e9a9bc8553 fix Broken Link for Create and run unit tests with Visual Studio
reference #4477
2017-10-02 14:20:53 -04:00
Luke Latham 19ce81f76a Provide link to download instructions for samples 2017-09-30 20:15:54 -05:00
Scott Addie cbbb7a8071 Merge pull request #4363 from guardrex/guardrex/mvc-model-validation-update
Add Required note to model validation topic
2017-09-28 11:45:38 -05:00
Luke Latham 96cca00e38 Drop literal_block comments and fix a few code blocks 2017-09-27 02:38:43 -05:00
Scott Addie 104ab35d53 Add closing paren and semicolon (#4406) 2017-09-26 09:19:06 -07:00
Luke Latham 11d5aacbda Add Required note to model validation topic
Fixes #1928
2017-09-22 21:29:11 -05:00
Luke Latham 18d1878f00 Trim keywords of keyword metadata
Patch 3
2017-09-21 02:22:29 -05:00
Luke Latham d157e2ec7a Kill BOM and add end newlines 2017-09-20 02:36:55 -05:00
Toby Johnson 669347ee62 Update SampleAsyncActionFilter.cs (#4259)
The existing code sample implies that the user can access the result of the action method in `context.Result`, but that is not the case. User needs to capture the result of the `next` delegate in order to access this info.
2017-09-14 21:36:55 -05:00
Isaac Levin 854c07c430 Remove Deadlinks in aspnetcore section of repo (#4241)
* Create mvc2.md

Added temp file to house doc requested in #3809

* Initial outline of document

* Added Note for Special Tooling (VS 2017 Preview 3)

Will remove when Preview 3 is updated into Release

* Added Porting Link

* Added Core DI Sample

* added DI Section

* Added Storing Configuration Settings Section

* Adding Custom Settings samples

* part of static content

* static content section

* .net standard section

* Adding Edit in VS 2017 Image

* Samples for Startup

* startup and csproj section

* update image reference

* Updates to Migration Doc

changes per @scottaddie

* Final round of changes

Please review

* Edits

* Fix invalid xref link

* More edits

* More edits

* More edits

* More edits

* More edits

* More edits

* Move Content to different directory

* Update Code Sample Links

* change sample location

* ::

* Update Sample Filenames

* Minor edit

* Remove extra space

* More edits

* Move Static Folder

* update reference to image

* Update mvc2.md

* Minor tweaks

* Changes to sample file

* Change copy for Configuration Section

* Fix code formatting

* Remove extra line feed

* Remove extra line feed

* Fix 3xx/4xx/5xx Status Codes in aspnetcore folder

* Take out locality references in urls:

* change MSDN urls to docs.microsoft if possible

* Update aspnet-core-module.md

* Update iis.md

* Remove localization from external links
2017-09-11 20:58:51 -05:00
Daniel Silva 4693cb02d8 Update filters.md (#4238)
Fixed typo
2017-09-08 09:28:56 -05:00
Luke Latham 4d0eaec779 Update TestingControllerSample app (#4157)
* Update TestingControllerSample app

Addresses #1950

Updates

Updates

Updates

Updates

Update

Updates

Updates

Update

Update

* Drop test packages back to latest stable

* Test proj update

* Close a void element
2017-09-05 16:09:57 -05:00
Luke Latham 6a7cb40282 Fix file path issues (#4196)
* Fix file path problems

Fixes #4192

Add one

* Revert TEMPs
2017-09-05 09:57:46 -05:00
Steve Smith ddc91e96b3 Clarifying sequence behavior in short-circuiting section. (#3918) 2017-08-10 10:07:30 -04:00
mwvdev 87617ec2ea Fixed an extra bracket in test method (#3740)
The source listing of the GetTestSessions method of [Testing Controller Logic](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/testing) included an end bracket due to an offset error in the line numbers:

```cs
[Fact]
public async Task Index_ReturnsAViewResult_WithAListOfBrainstormSessions()
{
	// Arrange
	var mockRepo = new Mock<IBrainstormSessionRepository>();
	mockRepo.Setup(repo => repo.ListAsync()).Returns(Task.FromResult(GetTestSessions()));
	var controller = new HomeController(mockRepo.Object);

	// Act
	var result = await controller.Index();

	// Assert
	var viewResult = Assert.IsType<ViewResult>(result);
	var model = Assert.IsAssignableFrom<IEnumerable<StormSessionViewModel>>(
		viewResult.ViewData.Model);
	Assert.Equal(2, model.Count());
}
}

private List<BrainstormSession> GetTestSessions()
{
	var sessions = new List<BrainstormSession>();
	sessions.Add(new BrainstormSession()
	{
		DateCreated = new DateTime(2016, 7, 2),
		Id = 1,
		Name = "Test One"
	});
	sessions.Add(new BrainstormSession()
	{
		DateCreated = new DateTime(2016, 7, 1),
		Id = 2,
		Name = "Test Two"
	});
	return sessions;
}
```

This has been fixed by increasing the starting offset by one.
2017-07-17 07:58:06 -06:00
Rick Anderson c23f9b383b remove /en-us/ (#3670) 2017-07-10 12:20:50 -06:00
Bertrand Mermet b7da7b974b Fix markdown in code samples (#3643)
Add c# syntactic highlighting on some samples that lacked it.
2017-07-06 08:53:44 -06:00
Scott Addie a1f6795a89 Fixes #1435 2017-07-05 22:30:23 -05:00
Rick Anderson 2225182397 remove | MS Docs (#3612) 2017-06-30 23:47:15 +00:00