Skip to content

Commit ada731b

Browse files
committed
Finished tutorial (#132)
1 parent 6b60e95 commit ada731b

File tree

299 files changed

+13389
-2855
lines changed

Some content is hidden

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

299 files changed

+13389
-2855
lines changed

docs/_docfx/custom/partials/head.tmpl.partial

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@
55
<meta name="viewport" content="width=device-width">
66
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
77
<meta name="generator" content="docfx {{_docfxVersion}}">
8-
{% seo %}
98
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
109
<link rel="shortcut icon" href="{{_rel}}favicon.ico">
1110
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
1211
<link rel="stylesheet" href="{{_rel}}styles/docfx.css">
1312
<link rel="stylesheet" href="{{_rel}}styles/main.css">
1413
<meta property="docfx:navrel" content="{{_navRel}}">
1514
<meta property="docfx:tocrel" content="{{_tocRel}}">
16-
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
15+
<meta property="docfx:rel" content="{{_rel}}">
16+
<meta property="og:title" content="{{#metaTitle}}{{metaTitle}}{{/metaTitle}}{{^metaTitle}}Flexible and asynchronous testing framework for ASP.NET Core MVC{{/metaTitle}}">
17+
<meta property="og:site_name" content="My Tested ASP.NET Core MVC Docs">
18+
<meta property="og:url" content="http://docs.mytestedasp.net/">
19+
<meta property="og:description" content="A fluent unit testing library for ASP.NET Core MVC">
20+
<meta property="og:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
21+
<meta property="og:type" content="website">
22+
<meta property="og:locale" content="en_US">
23+
<meta property="twitter:card" content="summary">
24+
<meta property="twitter:title" content="{{#metaTitle}}{{metaTitle}}{{/metaTitle}}{{^metaTitle}}Flexible and asynchronous testing framework for ASP.NET Core MVC{{/metaTitle}}">
25+
<meta property="twitter:description" content="A fluent unit testing library for ASP.NET Core MVC">
26+
<meta property="twitter:creator" content="@MyTestedASPNET">
27+
<meta property="twitter:url" content="https://mytestedasp.net/">
28+
<meta property="twitter:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
1729
</head>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
2+
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
3+
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
4+
<script>
5+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
6+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
7+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
8+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
9+
ga('create', 'UA-51720358-4', 'auto');
10+
ga('send', 'pageview');
11+
</script>
12+
<script>
13+
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
14+
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
15+
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
16+
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
17+
document,'script','https://connect.facebook.net/en_US/fbevents.js');
18+
fbq('init', '884740311601716');
19+
fbq('track', 'PageView');
20+
</script>
21+
<noscript><img height="1" width="1" style="display:none"
22+
src="https://www.facebook.com/tr?id=884740311601716&ev=PageView&noscript=1"
23+
/></noscript>

docs/_docfx/custom/styles/main.css

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
font-size: 1.6em;
2020
}
2121

22-
.content.wrap > h1 {
23-
margin-top: -175px;
24-
}
25-
2622
.navbar-brand:hover {
2723
color: #eee !important;
2824
}
@@ -127,13 +123,35 @@ footer a:hover {
127123
display: none;
128124
}
129125

126+
.content.wrap > h1 {
127+
margin-top: -100px;
128+
}
129+
130130
@media only screen and (max-width: 768px) {
131-
.hero {
132-
height: 500px;
133-
margin-top: 0px;
134-
}
135-
.hero .button {
136-
display: block;
137-
margin: 12px;
138-
}
131+
.hero {
132+
height: 500px;
133+
margin-top: 0px;
134+
}
135+
.hero .button {
136+
display: block;
137+
margin: 12px;
138+
}
139+
.hero .text {
140+
font-size: 36px;
141+
}
142+
.breadcrumb {
143+
text-align: center;
144+
}
145+
}
146+
147+
@media only screen and (max-width: 800px) {
148+
.nav.level1.navbar-nav {
149+
float: none !important;
150+
}
151+
}
152+
153+
@media only screen and (min-width: 769px) {
154+
.content.wrap > h1 {
155+
margin-top: -160px;
156+
}
139157
}

docs/_docfx/custom/styles/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ $(function() {
1313
$('#toc.toc').show();
1414
}
1515
}, 200);
16+
17+
if ($(window).width() < 780) {
18+
$('a.navbar-brand').text('MY TESTED MVC DOCS');
19+
}
1620
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(function(){}())

docs/_docfx/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ footer{
2424
<div class="col-md-6 text-center">
2525
<section>
2626
<h2>TUTORIAL</h2>
27-
<p class="lead">Start from here to learn how to setup a your test project by using My Tested ASP.NET Core MVC</p>
27+
<p class="lead">Start from here to learn how to setup a test project by using My Tested ASP.NET Core MVC</p>
2828
</section>
2929
</div>
3030
<div class="col-md-6 text-center">

docs/_docfx/tutorial/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void StoreManagerControllerShouldHaveCorrectAttributes()
100100
.ShouldHave()
101101
.Attributes(attributes => attributes
102102
.SpecifyingArea("Admin")
103-
.PassingFor<AuthorizeAttribute>(authorize => authorize.Policy == "ManageStore")); // <---
103+
.PassingFor<AuthorizeAttribute>(authorize => authorize.Policy == "ManageStore"));
104104
```
105105

106106
## Section summary

docs/_docfx/tutorial/intro.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
metaTitle: Getting started with ASP.NET Core MVC testing in less than 15 minutes
3+
---
14
# <img style="margin-right: 20px" src="https://raw.githubusercontent.com/ivaylokenov/MyTested.AspNetCore.Mvc/master/tools/nuget-logo.png" align="left" alt="MyTested.AspNetCore.Mvc" width="100"> Welcome to the Tutorial
25

36
Here you will find а [My Tested ASP.NET Core MVC](https://mytestedasp.net/Core/Mvc) tutorial, in which you will learn the most important parts of the testing framework. In less than 15 minutes you will be able to write fast, asynchronous and high-quality tests against the popular Microsoft web framework.

docs/api/MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.html

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@
99
<meta name="viewport" content="width=device-width">
1010
<meta name="title" content="Class ActionAttributesTestBuilderViewFeaturesExtensions
1111
">
12-
<meta name="generator" content="docfx 2.5.0.0">
13-
{% seo %}
12+
<meta name="generator" content="docfx 2.6.3.0">
1413

1514
<link rel="shortcut icon" href="../favicon.ico">
1615
<link rel="stylesheet" href="../styles/docfx.vendor.css">
1716
<link rel="stylesheet" href="../styles/docfx.css">
1817
<link rel="stylesheet" href="../styles/main.css">
1918
<meta property="docfx:navrel" content="../toc.html">
2019
<meta property="docfx:tocrel" content="toc.html">
21-
20+
<meta property="docfx:rel" content="../">
21+
<meta property="og:title" content="Flexible and asynchronous testing framework for ASP.NET Core MVC">
22+
<meta property="og:site_name" content="My Tested ASP.NET Core MVC Docs">
23+
<meta property="og:url" content="http://docs.mytestedasp.net/">
24+
<meta property="og:description" content="A fluent unit testing library for ASP.NET Core MVC">
25+
<meta property="og:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
26+
<meta property="og:type" content="website">
27+
<meta property="og:locale" content="en_US">
28+
<meta property="twitter:card" content="summary">
29+
<meta property="twitter:title" content="Flexible and asynchronous testing framework for ASP.NET Core MVC">
30+
<meta property="twitter:description" content="A fluent unit testing library for ASP.NET Core MVC">
31+
<meta property="twitter:creator" content="@MyTestedASPNET">
32+
<meta property="twitter:url" content="https://mytestedasp.net/">
33+
<meta property="twitter:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
2234
</head>
2335
<body data-spy="scroll" data-target="#affix">
2436
<div id="wrapper">
@@ -90,7 +102,7 @@ <h3 id="methods">Methods
90102
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/tutorial/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions_ValidatingAntiForgeryToken_MyTested_AspNetCore_Mvc_Builders_Contracts_Attributes_IActionAttributesTestBuilder_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.ValidatingAntiForgeryToken(MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IActionAttributesTestBuilder)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
91103
</span>
92104
<span class="small pull-right mobile-hide">
93-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
105+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/tutorial/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
94106
</span>
95107
<h4 id="MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions_ValidatingAntiForgeryToken_MyTested_AspNetCore_Mvc_Builders_Contracts_Attributes_IActionAttributesTestBuilder_" data-uid="MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.ValidatingAntiForgeryToken(MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IActionAttributesTestBuilder)">ValidatingAntiForgeryToken(IActionAttributesTestBuilder)</h4>
96108
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the action attributes contain <span class="xref">Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute</span>.</p>
@@ -145,7 +157,7 @@ <h5 class="returns">Returns</h5>
145157
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/tutorial/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
146158
</li>
147159
<li>
148-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L9" class="contribution-link">View Source</a>
160+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/tutorial/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L9" class="contribution-link">View Source</a>
149161
</li>
150162
</ul>
151163
</div>
@@ -168,10 +180,25 @@ <h5 class="returns">Returns</h5>
168180
</div>
169181
</footer>
170182
</div>
171-
172183
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
173-
<script>hljs.initHighlightingOnLoad();</script>
174184
<script type="text/javascript" src="../styles/docfx.js"></script>
175185
<script type="text/javascript" src="../styles/main.js"></script>
176-
</body>
186+
<script>
187+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
188+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
189+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
190+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
191+
ga('create', 'UA-51720358-4', 'auto');
192+
ga('send', 'pageview');
193+
</script>
194+
<script>
195+
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
196+
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
197+
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
198+
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
199+
document,'script','https://connect.facebook.net/en_US/fbevents.js');
200+
fbq('init', '884740311601716');
201+
fbq('track', 'PageView');
202+
</script>
203+
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=884740311601716&ev=PageView&noscript=1"></noscript> </body>
177204
</html>

0 commit comments

Comments
 (0)