Skip to content

Commit

Permalink
AppVeyor Publish: 42116a3
Browse files Browse the repository at this point in the history
Merge pull request #22 from bbtsoftware/feature/fix-sample-typo

Fix typos in samples
  • Loading branch information
web-flow authored Nov 21, 2019
1 parent c91fd0d commit 7a36718
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
24 changes: 12 additions & 12 deletions assets/js/searchIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ var searchModule = function() {
a(
{
id:1,
title:"IInstanceCreator",
content:"IInstanceCreator",
title:"GenericInstanceCreator",
content:"GenericInstanceCreator",
description:'',
tags:''
},
{
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/IInstanceCreator_2',
title:"IInstanceCreator<TInterface, TClass>",
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/GenericInstanceCreator_2',
title:"GenericInstanceCreator<TInterface, TClass>",
description:""
}
);
Expand Down Expand Up @@ -95,28 +95,28 @@ var searchModule = function() {
a(
{
id:4,
title:"IStrategyLocator",
content:"IStrategyLocator",
title:"IInstanceCreator",
content:"IInstanceCreator",
description:'',
tags:''
},
{
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/IStrategyLocator_1',
title:"IStrategyLocator<TStrategy>",
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/IInstanceCreator_2',
title:"IInstanceCreator<TInterface, TClass>",
description:""
}
);
a(
{
id:5,
title:"GenericInstanceCreator",
content:"GenericInstanceCreator",
title:"IStrategyLocator",
content:"IStrategyLocator",
description:'',
tags:''
},
{
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/GenericInstanceCreator_2',
title:"GenericInstanceCreator<TInterface, TClass>",
url:'/BBT.StrategyPattern/api/BBT.StrategyPattern/IStrategyLocator_1',
title:"IStrategyLocator<TStrategy>",
description:""
}
);
Expand Down
7 changes: 4 additions & 3 deletions docs/getting-started/fundamentals.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<div><p><a href="https://github.com/bbtsoftware/BBT.StrategyPattern/tree/develop/docs/input/docs/getting-started/fundamentals.md"><i class="fa fa-pencil-square" aria-hidden="true"></i> Edit Content</a></p></div>
<div id="infobar-headings"><h6>On This Page</h6><p><a href="#case-study-the-switch-case-block">Case study: The Switch Case Block</a></p>
<p><a href="#improvement-use-strategy">Improvement: Use strategy</a></p>
<p><a href="#improvement-use-generic-strategy-and-and-provider">Improvement: Use generic strategy and and provider</a></p>
<p><a href="#improvement-use-generic-strategy-and-provider">Improvement: Use generic strategy and provider</a></p>
<hr class="infobar-hidden">
</div>

Expand Down Expand Up @@ -133,6 +133,7 @@ <h2 id="violation-of-openclose-principle">Violation of open/close principle</h2>
<pre><code class="language-csharp">public void Foo(FooEnum fooEnum)
{
switch (fooEnum)
{
case FooEnum.Foo1:
Bar1();
break;
Expand Down Expand Up @@ -207,7 +208,7 @@ <h1 id="improvement-use-strategy">Improvement: Use strategy</h1>

public void Foo(FooEnum fooEnum)
{
var barStrategy = this.FooStrategyFactory.GetStrategy(fooEnum);
var barStrategy = this.FooStrategyProvider.GetStrategy(fooEnum);
barStrategy.Bar();
}
}
Expand All @@ -228,7 +229,7 @@ <h3 id="violation-of-single-responsibility-principle-1">Violation of single resp
<p>Besides the strategy selection the implementation of the FooStrategyFactory has another responsibility: The instantiation of the strategy instance.
This aspect should be separated and should have its own realization. There are third party libraries available for object instantiation.
Commonly used are IoC-containers. With those containers the behaviour of object lifecycle (e.g. transient, singleton) can be declared and therefore delegated to those libraries.</p>
<h1 id="improvement-use-generic-strategy-and-and-provider">Improvement: Use generic strategy and and provider</h1>
<h1 id="improvement-use-generic-strategy-and-provider">Improvement: Use generic strategy and provider</h1>
<p>BBT.StrategyPattern defines an interface for declaration of strategies based on a generic type parameter.</p>
<pre><code class="language-csharp">public interface <a href="/BBT.StrategyPattern/api/BBT.StrategyPattern/IGenericStrategy_1">IGenericStrategy&lt;T&gt;</a>
{
Expand Down
2 changes: 1 addition & 1 deletion feed.atom
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<title>BBT.StrategyPattern</title>
<link rel="self" href="http://bbtsoftware.github.io/BBT.StrategyPattern" />
<rights>2019</rights>
<updated>2019-11-21T08:14:20Z</updated>
<updated>2019-11-21T13:08:07Z</updated>
</feed>
4 changes: 2 additions & 2 deletions feed.rss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>http://bbtsoftware.github.io/BBT.StrategyPattern</link>
<description />
<copyright>2019</copyright>
<pubDate>Thu, 21 Nov 2019 08:14:20 GMT</pubDate>
<lastBuildDate>Thu, 21 Nov 2019 08:14:20 GMT</lastBuildDate>
<pubDate>Thu, 21 Nov 2019 13:08:07 GMT</pubDate>
<lastBuildDate>Thu, 21 Nov 2019 13:08:07 GMT</lastBuildDate>
</channel>
</rss>

0 comments on commit 7a36718

Please sign in to comment.