Skip to content

Commit

Permalink
Finished tutorial (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaylokenov committed Oct 31, 2016
1 parent 6b60e95 commit ada731b
Show file tree
Hide file tree
Showing 299 changed files with 13,389 additions and 2,855 deletions.
16 changes: 14 additions & 2 deletions docs/_docfx/custom/partials/head.tmpl.partial
Expand Up @@ -5,13 +5,25 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="{{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}}">
<meta name="generator" content="docfx {{_docfxVersion}}">
{% seo %}
{{#_description}}<meta name="description" content="{{_description}}">{{/_description}}
<link rel="shortcut icon" href="{{_rel}}favicon.ico">
<link rel="stylesheet" href="{{_rel}}styles/docfx.vendor.css">
<link rel="stylesheet" href="{{_rel}}styles/docfx.css">
<link rel="stylesheet" href="{{_rel}}styles/main.css">
<meta property="docfx:navrel" content="{{_navRel}}">
<meta property="docfx:tocrel" content="{{_tocRel}}">
{{#_enableSearch}}<meta property="docfx:rel" content="{{_rel}}">{{/_enableSearch}}
<meta property="docfx:rel" content="{{_rel}}">
<meta property="og:title" content="{{#metaTitle}}{{metaTitle}}{{/metaTitle}}{{^metaTitle}}Flexible and asynchronous testing framework for ASP.NET Core MVC{{/metaTitle}}">
<meta property="og:site_name" content="My Tested ASP.NET Core MVC Docs">
<meta property="og:url" content="http://docs.mytestedasp.net/">
<meta property="og:description" content="A fluent unit testing library for ASP.NET Core MVC">
<meta property="og:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="twitter:card" content="summary">
<meta property="twitter:title" content="{{#metaTitle}}{{metaTitle}}{{/metaTitle}}{{^metaTitle}}Flexible and asynchronous testing framework for ASP.NET Core MVC{{/metaTitle}}">
<meta property="twitter:description" content="A fluent unit testing library for ASP.NET Core MVC">
<meta property="twitter:creator" content="@MyTestedASPNET">
<meta property="twitter:url" content="https://mytestedasp.net/">
<meta property="twitter:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
</head>
23 changes: 23 additions & 0 deletions docs/_docfx/custom/partials/scripts.tmpl.partial
@@ -0,0 +1,23 @@
<script type="text/javascript" src="{{_rel}}styles/docfx.vendor.js"></script>
<script type="text/javascript" src="{{_rel}}styles/docfx.js"></script>
<script type="text/javascript" src="{{_rel}}styles/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51720358-4', 'auto');
ga('send', 'pageview');
</script>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '884740311601716');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=884740311601716&ev=PageView&noscript=1"
/></noscript>
42 changes: 30 additions & 12 deletions docs/_docfx/custom/styles/main.css
Expand Up @@ -19,10 +19,6 @@
font-size: 1.6em;
}

.content.wrap > h1 {
margin-top: -175px;
}

.navbar-brand:hover {
color: #eee !important;
}
Expand Down Expand Up @@ -127,13 +123,35 @@ footer a:hover {
display: none;
}

.content.wrap > h1 {
margin-top: -100px;
}

@media only screen and (max-width: 768px) {
.hero {
height: 500px;
margin-top: 0px;
}
.hero .button {
display: block;
margin: 12px;
}
.hero {
height: 500px;
margin-top: 0px;
}
.hero .button {
display: block;
margin: 12px;
}
.hero .text {
font-size: 36px;
}
.breadcrumb {
text-align: center;
}
}

@media only screen and (max-width: 800px) {
.nav.level1.navbar-nav {
float: none !important;
}
}

@media only screen and (min-width: 769px) {
.content.wrap > h1 {
margin-top: -160px;
}
}
4 changes: 4 additions & 0 deletions docs/_docfx/custom/styles/main.js
Expand Up @@ -13,4 +13,8 @@ $(function() {
$('#toc.toc').show();
}
}, 200);

if ($(window).width() < 780) {
$('a.navbar-brand').text('MY TESTED MVC DOCS');
}
})
1 change: 1 addition & 0 deletions docs/_docfx/custom/styles/search-worker.js
@@ -0,0 +1 @@
(function(){}())
2 changes: 1 addition & 1 deletion docs/_docfx/index.md
Expand Up @@ -24,7 +24,7 @@ footer{
<div class="col-md-6 text-center">
<section>
<h2>TUTORIAL</h2>
<p class="lead">Start from here to learn how to setup a your test project by using My Tested ASP.NET Core MVC</p>
<p class="lead">Start from here to learn how to setup a test project by using My Tested ASP.NET Core MVC</p>
</section>
</div>
<div class="col-md-6 text-center">
Expand Down
2 changes: 1 addition & 1 deletion docs/_docfx/tutorial/attributes.md
Expand Up @@ -100,7 +100,7 @@ public void StoreManagerControllerShouldHaveCorrectAttributes()
.ShouldHave()
.Attributes(attributes => attributes
.SpecifyingArea("Admin")
.PassingFor<AuthorizeAttribute>(authorize => authorize.Policy == "ManageStore")); // <---
.PassingFor<AuthorizeAttribute>(authorize => authorize.Policy == "ManageStore"));
```

## Section summary
Expand Down
3 changes: 3 additions & 0 deletions docs/_docfx/tutorial/intro.md
@@ -1,3 +1,6 @@
---
metaTitle: Getting started with ASP.NET Core MVC testing in less than 15 minutes
---
# <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

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.
Expand Down
Expand Up @@ -9,16 +9,28 @@
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class ActionAttributesTestBuilderViewFeaturesExtensions
">
<meta name="generator" content="docfx 2.5.0.0">
{% seo %}
<meta name="generator" content="docfx 2.6.3.0">

<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="../toc.html">
<meta property="docfx:tocrel" content="toc.html">

<meta property="docfx:rel" content="../">
<meta property="og:title" content="Flexible and asynchronous testing framework for ASP.NET Core MVC">
<meta property="og:site_name" content="My Tested ASP.NET Core MVC Docs">
<meta property="og:url" content="http://docs.mytestedasp.net/">
<meta property="og:description" content="A fluent unit testing library for ASP.NET Core MVC">
<meta property="og:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="twitter:card" content="summary">
<meta property="twitter:title" content="Flexible and asynchronous testing framework for ASP.NET Core MVC">
<meta property="twitter:description" content="A fluent unit testing library for ASP.NET Core MVC">
<meta property="twitter:creator" content="@MyTestedASPNET">
<meta property="twitter:url" content="https://mytestedasp.net/">
<meta property="twitter:image" content="https://mytestedasp.net/Content/Images/logosocial.jpg">
</head>
<body data-spy="scroll" data-target="#affix">
<div id="wrapper">
Expand Down Expand Up @@ -90,7 +102,7 @@ <h3 id="methods">Methods
<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>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/tutorial/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
</span>
<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>
<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>
Expand Down Expand Up @@ -145,7 +157,7 @@ <h5 class="returns">Returns</h5>
<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>
</li>
<li>
<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>
<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>
</li>
</ul>
</div>
Expand All @@ -168,10 +180,25 @@ <h5 class="returns">Returns</h5>
</div>
</footer>
</div>

<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
</body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-51720358-4', 'auto');
ga('send', 'pageview');
</script>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '884740311601716');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=884740311601716&ev=PageView&noscript=1"></noscript> </body>
</html>

0 comments on commit ada731b

Please sign in to comment.