Skip to content

Commit

Permalink
Fix typos in samples
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Nov 21, 2019
1 parent 63c7ef7 commit 865bcef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/input/docs/getting-started/fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Switch case blocks do not fulfill this principle.
public void Foo(FooEnum fooEnum)
{
switch (fooEnum)
{
case FooEnum.Foo1:
Bar1();
break;
Expand Down Expand Up @@ -114,7 +115,7 @@ public class Foo

public void Foo(FooEnum fooEnum)
{
var barStrategy = this.FooStrategyFactory.GetStrategy(fooEnum);
var barStrategy = this.FooStrategyProvider.GetStrategy(fooEnum);
barStrategy.Bar();
}
}
Expand Down Expand Up @@ -148,7 +149,7 @@ Besides the strategy selection the implementation of the FooStrategyFactory has
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.

# Improvement: Use generic strategy and and provider
# Improvement: Use generic strategy and provider

BBT.StrategyPattern defines an interface for declaration of strategies based on a generic type parameter.

Expand Down

0 comments on commit 865bcef

Please sign in to comment.