Skip to content

Commit 4e93a43

Browse files
committed
Merge branch 'development' into version-3.1
2 parents 8878904 + a8f1116 commit 4e93a43

File tree

258 files changed

+13078
-3356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+13078
-3356
lines changed

BACKERS.md

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,28 @@
99
- One-time donation via cryptocurrencies:
1010
- BTC (Bitcoin) - 3P49XMiGXxqR2Dq1HdqHpkCa6UD848rpBU
1111
- BCH (Bitcoin Cash) - qqgyjlvmuydf6gtfhfdypyw2u8utmc3uqg4nwma3y4
12-
- ETC (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
12+
- ETH (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
1313
- LTC (Litecoin) - MQ1GJum1QuqAuUsc6LarE3Z6TQQJ3rJwsA
1414

1515
#### What's the difference between Patreon and OpenCollective?
1616

17-
Funds donated via both platforms are used for development and marketing purposes. Funds donated via OpenCollective are managed with transparent expenses. Your name/logo will receive proper recognition and exposure by donating on either platform.
17+
Funds donated via both platforms are used for development and marketing purposes. Funds donated via [OpenCollective](https://opencollective.com/mytestedaspnet) are managed with transparent expenses. Your name/logo will receive proper recognition and exposure by donating on either platform.
18+
19+
Additionally, funds donated via [Patreon](https://www.patreon.com/ivaylokenov) (see the stretch goals) give me the freedom to add more features to the free `Lite` edition of the library.
20+
21+
## Special Sponsors
22+
23+
<table>
24+
<tbody>
25+
<tr>
26+
<td align="center" valign="middle">
27+
<a href="http://bit.ly/bellatrixsolutions" target="_blank">
28+
<img width="323px" src="https://user-images.githubusercontent.com/3391906/68993273-d4f5c700-087e-11ea-9b39-e173733fcbfb.png" alt=""The Ultimate Cross-Platform .NET Framework>
29+
</a>
30+
</td>
31+
</tr>
32+
</tbody>
33+
</table>
1834

1935
## Gold Sponsors
2036

@@ -25,32 +41,46 @@ Funds donated via both platforms are used for development and marketing purposes
2541
<a href="https://softuni.org/" target="_blank">
2642
<img width="148px" src="https://softuni.org/platform/assets/icons/logo.svg">
2743
</a>
44+
</td>
45+
<td align="center" valign="middle">
46+
<a href="http://bit.ly/30xsnsC" target="_blank">
47+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/65251792-dd848800-daef-11e9-8857-637a48048cda.png">
48+
</a>
49+
</td>
50+
<td align="center" valign="middle">
51+
<a href="http://noblehire.io?utm_medium=social&utm_source=projects&utm_campaign=platform-leads-knv" target="_blank">
52+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/66921689-637fea00-f02e-11e9-944a-b07c6f345a06.png">
53+
</a>
54+
</td>
55+
<td align="center" valign="middle">
56+
<a href="http://bit.ly/onebitsoftware" target="_blank">
57+
<img width="148px" height="70px" src="https://user-images.githubusercontent.com/3391906/69410626-1a4d4500-0d14-11ea-905f-c1705b6364bf.png">
58+
</a>
2859
</td>
2960
</tr>
3061
</tbody>
3162
</table>
3263

3364
## Generous Backers
3465
- Plamen Petkov
66+
- [Svetlin Nakov](https://nakov.com/)
3567

3668
## Kickstarters
3769
- Ines Ivanova from [C# In 15 Minutes](https://www.youtube.com/channel/UCljus-YO63ae0vwuuPWDasA)
38-
- Rusko Kumovski
3970

4071
## Top Backers
4172
- Bace Kar pod prekor Silovio aka Brudlordo
4273
- Hristo Hentov
4374
- Vasil Valchanov
4475
- Ellie Stankova
45-
- Krasimir Gavrilov
4676
- Pavel Kolev from [Rebellious Software](https://www.rebellioussoftware.com)
47-
- Regina Uzunova
4877
- Victoria Karamanova
4978
- Yanislav Asenov
5079
- Ico Dimov
5180
- Viktor Klisurski
5281
- Desi Zlatanova
5382
- Tsenko Tsenov
83+
- [Ivan Ivanov](https://github.com/csyntax)
5484

5585
## Generous One-Time Donations
5686
- My-Amazing-Store
@@ -62,15 +92,21 @@ Funds donated via both platforms are used for development and marketing purposes
6292
- Anton Ivanov
6393
- Sideriss
6494
- Pavel Doychinov
95+
- Emil Slavov
6596

6697
## Backers
67-
Aleksandur Gyuzelov, Bogomil Stoev, Desislav Stoyanov, Emil Venkov, Georgi Krasimirov Georgiev, Kristiyan Mihailov, Lyubomir Krastanov, Nikolay Boyadzhiev, Nikolay Mihaylov, Rositsa Nenova, Slavi Bozhikov, Vasil Bonev, Yuriy Georgiev, Калин Ценков, Velina Getova, Gabriel Daskalov
98+
Aleksandur Gyuzelov, Desislav Stoyanov, Emil Venkov, Georgi Krasimirov Georgiev, Kristiyan Mihailov, Lyubomir Krastanov, Nikolay Boyadzhiev, Nikolay Mihaylov, Rositsa Nenova, Slavi Bozhikov, Vasil Bonev, Yuriy Georgiev, Калин Ценков, Velina Getova
6899

69100
## One-Time Donations
70-
Philip Shishov, Mariya Georgieva, Tanya Georgieva, Danny Berova, German Dimitrov, Aleksandar Evangelatov, Anton Petrov, Hristo Ivanov, Anna Stambolieva, Nedelcho Penev, Yulian Ashikov, Boyana Aleksova, Plamen Haralambiev, Victoria Karamanova, Ivaylo Goranov, Aneliya Drazheva, Zdravko Yakimov, Vanya Kuncheva, Georgi Petrov, Stanimir Pavlov, Teodor Stefanov, Stefan Minchev, Simon Valentinova Kochova, Marin Marinov, Petar Peshev, Radoslav Astardzhiev, Dimitar Radkov, Aleksandar Tsvetkov, Georgi Dragnev, Veselin Neychev, Kaloyan Kolev, Andrey Blagoev, Yordan Penev, Ventsislav Yordanov, Nikolay Georgiev, Siyana Yasenova Zdravkova, Ani Kalpachka, Gergana Damyanova, Petya Koleva, Dyanko Petkov, Nikola Kolchakov, Borislava Hranova
101+
Stilgar Naibski, Ivomir Assi, Maria Georgieva, Tyler Austen, Stefan Minchev, Borislav Lazarov, Georgi Petrov, Yuliyana Tahova, Philip Shishov, Mariya Georgieva, Tanya Georgieva, Danny Berova, German Dimitrov, Aleksandar Evangelatov, Anton Petrov, Hristo Ivanov, Anna Stambolieva, Nedelcho Penev, Yulian Ashikov, Boyana Aleksova, Plamen Haralambiev, Victoria Karamanova, Ivaylo Goranov, Aneliya Drazheva, Zdravko Yakimov, Vanya Kuncheva, Georgi Petrov, Stanimir Pavlov, Teodor Stefanov, Stefan Minchev, Simon Valentinova Kochova, Marin Marinov, Petar Peshev, Radoslav Astardzhiev, Dimitar Radkov, Aleksandar Tsvetkov, Georgi Dragnev, Veselin Neychev, Kaloyan Kolev, Andrey Blagoev, Yordan Penev, Ventsislav Yordanov, Nikolay Georgiev, Siyana Yasenova Zdravkova, Ani Kalpachka, Gergana Damyanova, Petya Koleva, Dyanko Petkov, Nikola Kolchakov, Borislava Hranova
71102

72103
## Previous Supporters
104+
- Regina Uzunova
105+
- Krasimir Gavrilov
106+
- Bogomil Stoev
107+
- Gabriel Daskalov
108+
- Rusko Kumovski
73109
- Kris Petrov
74110
- Mihail Duchev
75111
- Nikola Stankov
76-
- Peter
112+
- Peter

README.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
<h1><img src="https://raw.githubusercontent.com/ivaylokenov/MyTested.AspNetCore.Mvc/master/tools/logo.png" align="left" alt="MyTested.AspNetCore.Mvc" width="100">&nbsp; MyTested.AspNetCore.Mvc - Fluent Testing<br />&nbsp; Library for ASP.NET Core MVC</h1>
22

3+
## Special Sponsors
4+
5+
<table>
6+
<tbody>
7+
<tr>
8+
<td align="center" valign="middle">
9+
<a href="http://bit.ly/bellatrixsolutions" target="_blank">
10+
<img width="323px" src="https://user-images.githubusercontent.com/3391906/68993273-d4f5c700-087e-11ea-9b39-e173733fcbfb.png" alt=""The Ultimate Cross-Platform .NET Framework>
11+
</a>
12+
</td>
13+
</tr>
14+
</tbody>
15+
</table>
16+
317
## Gold Sponsors
418

519
<table>
@@ -9,14 +23,29 @@
923
<a href="https://softuni.org/" target="_blank">
1024
<img width="148px" src="https://softuni.org/platform/assets/icons/logo.svg">
1125
</a>
26+
</td>
27+
<td align="center" valign="middle">
28+
<a href="http://bit.ly/30xsnsC" target="_blank">
29+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/65251792-dd848800-daef-11e9-8857-637a48048cda.png">
30+
</a>
31+
</td>
32+
<td align="center" valign="middle">
33+
<a href="http://noblehire.io?utm_medium=social&utm_source=projects&utm_campaign=platform-leads-knv" target="_blank">
34+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/66921689-637fea00-f02e-11e9-944a-b07c6f345a06.png">
35+
</a>
36+
</td>
37+
<td align="center" valign="middle">
38+
<a href="http://bit.ly/onebitsoftware" target="_blank">
39+
<img width="148px" height="70px" src="https://user-images.githubusercontent.com/3391906/69410626-1a4d4500-0d14-11ea-905f-c1705b6364bf.png">
40+
</a>
1241
</td>
1342
</tr>
1443
</tbody>
1544
</table>
1645

1746
## Project Description
1847

19-
**MyTested.AspNetCore.Mvc** is a strongly-typed unit testing library providing an easy fluent interface to test the [ASP.NET Core MVC](https://github.com/aspnet/AspNetCore) framework. It is testing framework agnostic so that you can combine it with a test runner of your choice (e.g. [xUnit](https://github.com/xunit/xunit), [NUnit](https://github.com/nunit/nunit), etc.).
48+
**MyTested.AspNetCore.Mvc** is a strongly-typed unit testing library providing an easy fluent interface to test the [ASP.NET Core](https://github.com/aspnet/AspNetCore) framework, perfectly suitable for both MVC and API scenarios. It is testing framework agnostic so that you can combine it with a test runner of your choice (e.g. [xUnit](https://github.com/xunit/xunit), [NUnit](https://github.com/nunit/nunit), etc.).
2049

2150
*Windows:* [![Build status](https://ci.appveyor.com/api/projects/status/3xlag3a7f87bg4on?svg=true)](https://ci.appveyor.com/project/ivaylokenov/mytested-aspnetcore-mvc)
2251

@@ -49,6 +78,7 @@ Take a look around and...
4978

5079
#### Featured in
5180

81+
- [The official ASP.NET Core MVC documentation](https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/testing?view=aspnetcore-3.0#additional-resources)
5282
- [The official ASP.NET Core MVC repository](https://github.com/aspnet/AspNetCore/tree/master/src/Mvc#aspnet-core-mvc)
5383
- [NuGet Package of the week in "The week in .NET – 6/28/2016"](https://devblogs.microsoft.com/dotnet/the-week-in-net-6282016/)
5484
- [Awesome .NET Core](https://github.com/thangchung/awesome-dotnet-core#testing)
@@ -64,12 +94,14 @@ Take a look around and...
6494
- One-time donation via cryptocurrencies:
6595
- BTC (Bitcoin) - 3P49XMiGXxqR2Dq1HdqHpkCa6UD848rpBU
6696
- BCH (Bitcoin Cash) - qqgyjlvmuydf6gtfhfdypyw2u8utmc3uqg4nwma3y4
67-
- ETC (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
97+
- ETH (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
6898
- LTC (Litecoin) - MQ1GJum1QuqAuUsc6LarE3Z6TQQJ3rJwsA
6999

70100
#### What's the difference between Patreon and OpenCollective?
71101

72-
Funds donated via both platforms are used for development and marketing purposes. Funds donated via OpenCollective are managed with transparent expenses. Your name/logo will receive proper recognition and exposure by donating on either platform.
102+
Funds donated via both platforms are used for development and marketing purposes. Funds donated via [OpenCollective](https://opencollective.com/mytestedaspnet) are managed with transparent expenses. Your name/logo will receive proper recognition and exposure by donating on either platform.
103+
104+
Additionally, funds donated via [Patreon](https://www.patreon.com/ivaylokenov) (see the stretch goals) give me the freedom to add more features to the free `Lite` edition of the library.
73105

74106
## Quick Start
75107

@@ -156,7 +188,7 @@ namespace MyApp.Tests.Controllers
156188
.Controller<HomeController>()
157189
.Calling(c => c.Index())
158190
.ShouldReturn()
159-
.View();
191+
.Ok();
160192
}
161193
}
162194
```
@@ -231,7 +263,7 @@ MyController<MyMvcController>
231263
.Passing(cacheModel => cacheModel.Id == 1)))
232264
.AndAlso()
233265
.ShouldReturn()
234-
.View(result => result
266+
.Ok(result => result
235267
.WithModelOfType<MyResponseModel>());
236268

237269
// Instantiates controller with the registered global services,
@@ -261,7 +293,7 @@ MyController<MyMvcController>
261293
.ContainingEntryWithKey(ControllerConstants.SuccessMessage))
262294
.AndAlso()
263295
.ShouldReturn()
264-
.Redirect(redirect => redirect
296+
.Redirect(result => result
265297
.To<AnotherController>(c => c.AnotherAction()));
266298
```
267299

@@ -282,7 +314,7 @@ MyController<MyMvcController>
282314
From.Services<IYetAnotherService>())) // Provides a global service.
283315
.Calling(c => c.MyAction())
284316
.ShouldReturn()
285-
.View();
317+
.Accepted();
286318

287319
// Instantiates controller with the provided service mocks,
288320
// and tests for view result.
@@ -488,7 +520,7 @@ MyMvc
488520

489521
// Assert
490522
.ShouldReturn()
491-
.Redirect(redirect => redirect
523+
.Redirect(result => result
492524
.To<AnotherController>(c => c.AnotherAction(
493525
With.No<MyDataContext>(),
494526
id)));
@@ -507,7 +539,7 @@ var call = controller.Calling(c => c.MyAction(id));
507539
// Assert
508540
call
509541
.ShouldReturn()
510-
.View(view => view
542+
.Json(result => result
511543
.WithModelOfType<MyModel>()
512544
.Passing(model => model.Id == id));
513545
```
@@ -566,7 +598,7 @@ MyMvc
566598
.WithPath("/")))
567599
.AndAlso()
568600
.ShouldReturn()
569-
.Ok();
601+
.BadRequest();
570602
```
571603

572604
## Package Installation

docs/_docfx/custom/styles/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ footer a:hover {
4949
}
5050

5151
.wrap {
52-
margin-top: 90px;
52+
margin-top: 160px;
5353
}
5454

5555
.counter-key-section{

docs/_docfx/guide/testconfig.md renamed to docs/_docfx/guide/testsettings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Test Configuration
1+
# Test Settings
22

33
<strong class="article-contents">This document is still work in progress...</strong>
44

37.1 KB
Loading
172 KB
Loading
-117 KB
Binary file not shown.
1.21 KB
Loading
23.1 KB
Loading
56.4 KB
Loading

0 commit comments

Comments
 (0)