Skip to content

Commit c3c58a7

Browse files
committed
Resolving merge conflicts
2 parents dd84392 + 0b0a77a commit c3c58a7

File tree

223 files changed

+10410
-3390
lines changed

Some content is hidden

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

223 files changed

+10410
-3390
lines changed

BACKERS.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
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.
1820

1921
## Gold Sponsors
2022

@@ -25,17 +27,27 @@ Funds donated via both platforms are used for development and marketing purposes
2527
<a href="https://softuni.org/" target="_blank">
2628
<img width="148px" src="https://softuni.org/platform/assets/icons/logo.svg">
2729
</a>
30+
</td>
31+
<td align="center" valign="middle">
32+
<a href="http://bit.ly/30xsnsC" target="_blank">
33+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/65251792-dd848800-daef-11e9-8857-637a48048cda.png">
34+
</a>
35+
</td>
36+
<td align="center" valign="middle">
37+
<a href="http://noblehire.io?utm_medium=social&utm_source=projects&utm_campaign=platform-leads-knv" target="_blank">
38+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/66921689-637fea00-f02e-11e9-944a-b07c6f345a06.png">
39+
</a>
2840
</td>
2941
</tr>
3042
</tbody>
3143
</table>
3244

3345
## Generous Backers
3446
- Plamen Petkov
47+
- [Svetlin Nakov](https://nakov.com/)
3548

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

4052
## Top Backers
4153
- Bace Kar pod prekor Silovio aka Brudlordo
@@ -51,6 +63,7 @@ Funds donated via both platforms are used for development and marketing purposes
5163
- Viktor Klisurski
5264
- Desi Zlatanova
5365
- Tsenko Tsenov
66+
- [Ivan Ivanov](https://github.com/csyntax)
5467

5568
## Generous One-Time Donations
5669
- My-Amazing-Store
@@ -62,15 +75,18 @@ Funds donated via both platforms are used for development and marketing purposes
6275
- Anton Ivanov
6376
- Sideriss
6477
- Pavel Doychinov
78+
- Emil Slavov
6579

6680
## 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
81+
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
6882

6983
## 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
84+
Tyler Austen, Stefan Minchev, Borislav Lazarov, Anna Stambolieva, 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
7185

7286
## Previous Supporters
87+
- Gabriel Daskalov
88+
- Rusko Kumovski
7389
- Kris Petrov
7490
- Mihail Duchev
7591
- Nikola Stankov
76-
- Peter
92+
- Peter

README.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@
99
<a href="https://softuni.org/" target="_blank">
1010
<img width="148px" src="https://softuni.org/platform/assets/icons/logo.svg">
1111
</a>
12+
</td>
13+
<td align="center" valign="middle">
14+
<a href="http://bit.ly/30xsnsC" target="_blank">
15+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/65251792-dd848800-daef-11e9-8857-637a48048cda.png">
16+
</a>
17+
</td>
18+
<td align="center" valign="middle">
19+
<a href="http://noblehire.io?utm_medium=social&utm_source=projects&utm_campaign=platform-leads-knv" target="_blank">
20+
<img width="148px" src="https://user-images.githubusercontent.com/3391906/66921689-637fea00-f02e-11e9-944a-b07c6f345a06.png">
21+
</a>
1222
</td>
1323
</tr>
1424
</tbody>
1525
</table>
1626

1727
## Project Description
1828

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.).
29+
**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.).
2030

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

@@ -41,7 +51,9 @@ Take a look around and...
4151

4252
⭐️ ...if you like the library, **star** the repository and **show** it to your friends!
4353

44-
👀 ...if you find it useful, make sure you **subscribe** for future releases by clicking the **"Watch"** button and choosing **"Releases only"**!
54+
😏 ...if you find it useful, make sure you **subscribe** for future releases by clicking the **"Watch"** button and choosing **"Releases only"**!
55+
56+
👀 ...if you want to learn cool C# coding techniques, **subscribe** to my [YouTube channel](https://www.youtube.com/channel/UCP5Ons7fK3yKhX6lhc9XcfQ), where I regularly post online video lessons!
4557

4658
✔ ...if you want to **support** the project, **[become a sponsor/backer](#sponsors--backers)** or go to [https://MyTestedASP.NET](https://MyTestedASP.NET), and consider **purchasing a premium [license](#license)**!
4759

@@ -62,12 +74,14 @@ Take a look around and...
6274
- One-time donation via cryptocurrencies:
6375
- BTC (Bitcoin) - 3P49XMiGXxqR2Dq1HdqHpkCa6UD848rpBU
6476
- BCH (Bitcoin Cash) - qqgyjlvmuydf6gtfhfdypyw2u8utmc3uqg4nwma3y4
65-
- ETC (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
77+
- ETH (Ethereum) - 0x2bc55e4b1B9b296B751738631CD24b2f701E588F
6678
- LTC (Litecoin) - MQ1GJum1QuqAuUsc6LarE3Z6TQQJ3rJwsA
6779

6880
#### What's the difference between Patreon and OpenCollective?
6981

70-
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.
82+
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.
83+
84+
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.
7185

7286
## Quick Start
7387

@@ -154,7 +168,7 @@ namespace MyApp.Tests.Controllers
154168
.Controller<HomeController>()
155169
.Calling(c => c.Index())
156170
.ShouldReturn()
157-
.View();
171+
.Ok();
158172
}
159173
}
160174
```
@@ -163,7 +177,7 @@ Basically, **MyTested.AspNetCore.Mvc** throws an unhandled exception with a frie
163177

164178
## Detailed Documentation
165179

166-
It is **strongly advised** to read the [tutorial](http://docs.mytestedasp.net/tutorial/intro.html) to get familiar with **MyTested.AspNetCore.Mvc** in more details. Additionally, you may see the [testing guide](http://docs.mytestedasp.net/guide/intro.html) or the [API reference](http://docs.mytestedasp.net/api/index.html) for a full list of available features.
180+
It is **strongly advised** to read the [tutorial](http://docs.mytestedasp.net/tutorial/intro.html) or watch [this online video lesson](https://www.youtube.com/watch?v=Tf2P-410Za4) to get familiar with **MyTested.AspNetCore.Mvc** in more details. Additionally, you may see the [testing guide](http://docs.mytestedasp.net/guide/intro.html) or the [API reference](http://docs.mytestedasp.net/api/index.html) for a full list of available features.
167181

168182
You can also check out the [provided samples](https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/tree/version-2.2/samples) for real-life ASP.NET Core MVC application testing.
169183

@@ -198,7 +212,7 @@ This package will include all available assertion methods in your test project,
198212
- `MyTested.AspNetCore.Mvc.DataAnnotations` - Contains setup and assertion methods for data annotation validations
199213
- `MyTested.AspNetCore.Mvc.EntityFrameworkCore` - Contains setup and assertion methods for `DbContext`
200214
- `MyTested.AspNetCore.Mvc.DependencyInjection` - Contains setup methods for dependency injection services
201-
- `MyTested.AspNetCore.Mvc.Caching` - Contains setup and assertion methods for `IMemoryCache`
215+
- `MyTested.AspNetCore.Mvc.Caching` - Contains setup and assertion methods for `IMemoryCache` and `IDistributedCache`
202216
- `MyTested.AspNetCore.Mvc.Session` - Contains setup and assertion methods for `ISession`
203217
- `MyTested.AspNetCore.Mvc.Options` - Contains setup and assertion methods for `IOptions`
204218
- `MyTested.AspNetCore.Mvc.Helpers` - Contains additional helper methods for easier assertions
@@ -272,7 +286,7 @@ MyController<MyMvcController>
272286
.Passing(cacheModel => cacheModel.Id == 1)))
273287
.AndAlso()
274288
.ShouldReturn()
275-
.View(result => result
289+
.Ok(result => result
276290
.WithModelOfType<MyResponseModel>());
277291

278292
// Instantiates controller with the registered global services,
@@ -302,7 +316,7 @@ MyController<MyMvcController>
302316
.ContainingEntryWithKey(ControllerConstants.SuccessMessage))
303317
.AndAlso()
304318
.ShouldReturn()
305-
.Redirect(redirect => redirect
319+
.Redirect(result => result
306320
.To<AnotherController>(c => c.AnotherAction()));
307321
```
308322

@@ -323,7 +337,7 @@ MyController<MyMvcController>
323337
From.Services<IYetAnotherService>()) // Provides a global service.
324338
.Calling(c => c.MyAction())
325339
.ShouldReturn()
326-
.View();
340+
.Accepted();
327341

328342
// Instantiates controller with the provided service mocks,
329343
// and tests for view result.
@@ -480,7 +494,7 @@ MyMvc
480494

481495
// Assert
482496
.ShouldReturn()
483-
.Redirect(redirect => redirect
497+
.Redirect(result => result
484498
.To<AnotherController>(c => c.AnotherAction(
485499
With.No<MyDataContext>(),
486500
id)));
@@ -499,7 +513,7 @@ var call = controller.Calling(c => c.MyAction(id));
499513
// Assert
500514
call
501515
.ShouldReturn()
502-
.View(view => view
516+
.Json(result => result
503517
.WithModelOfType<MyModel>()
504518
.Passing(model => model.Id == id));
505519
```
@@ -556,9 +570,9 @@ MyMvc
556570
.WithDomain("mydomain.com")
557571
.WithExpiration(myDateTimeOffset)
558572
.WithPath("/")))
559-
.AndAlso()
573+
.AndAlso()
560574
.ShouldReturn()
561-
.Ok();
575+
.BadRequest();
562576
```
563577

564578
## Versioning

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)