Commit Graph

15 Commits (b59fcb6af41f685c60ee3a50214fdb30b8075221)

Author SHA1 Message Date
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
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
Rick Anderson 2225182397 remove | MS Docs (#3612) 2017-06-30 23:47:15 +00:00
Jacob Foshee 620fccb478 Minor: 'in the in the' => 'in the' (#2957) 2017-03-13 10:38:26 -10:00
Andy Pasic 010b730d27 Bulk metadata fix (#2871)
* meta data fix

* Revert "meta data fix"

This reverts commit ba36883476.

* meta data fix2

* test

* Update owin-oauth-20-authorization-server.md

* Update api-ref.md

* Update api-ref.md

* test

* test2
2017-03-02 14:50:36 -10:00
Luke Latham 7d0d9da8f0 Fix links and anchors (#2639)
* Update app-state.md

* Update dependency-injection.md

* Update aspnet-core-module.md

* Update http-modules.md

* Update other-logins.md

* The Walther blog post is gone

* Update cors.md

* Update context-headers.md

* Update subkeyderivation.md

* Update index.md

* Update app-state.md

* Update dependency-injection.md

* Update routing.md

* Update mvc.md

* Update testing.md

* Update razor.md

* Update memory.md

* Update cors.md

* Update iis.md

* Update integration-testing.md

* Update index.md

* Update integration-testing.md
2017-02-01 14:49:21 -10:00
Jie RONG 4cd10bfcce Update testing.md for a grammar issue. (#2573)
* Update testing.md for a grammar issue.

* Update testing.md
2017-01-22 23:14:16 -08:00
Tom Dykstra b1bd9f9ece mvc toc restructure (#2482)
* mvc toc restructure

* move mvc tutorial nodes to mvc section

* fix heading casing and toc node hierarchy

* add intro text to series index.md files
2017-01-14 13:59:26 -08:00
Andy Pasic a82e144ea1 fixed code snippets 2016-11-17 21:03:07 -08:00
Rick Anderson 17f93fe6c5 keywords and decription meta-data 2016-11-17 10:13:02 -10:00
Rick Anderson b23d49f1f6 title + meta on technology 2016-11-16 14:24:57 -10:00
Steve Smith 807a02838b Author updates (#2144) 2016-11-11 11:28:14 -05:00
Andy Pasic 5c533c0d9e dl link fix (#2116)
* quick test

* validation fix
2016-11-07 07:19:31 -10:00
Daniel Roth e9c1419175 Add docfx content 2016-10-28 10:35:15 -07:00