11using GofConsoleApp . Examples . Behavioral . CommandPattern ;
22using GofConsoleApp . Examples . Behavioral . CorPattern ;
33using GofConsoleApp . Examples . Behavioral . MediatorPattern ;
4+ using GofConsoleApp . Examples . Behavioral . ObserverPattern ;
45using GofConsoleApp . Examples . Behavioral . StatePattern ;
56using GofConsoleApp . Examples . Behavioral . StrategyPattern ;
67using GofConsoleApp . Examples . Creational . AbstractFactoryPattern ;
@@ -24,6 +25,9 @@ internal static class PatternOptions
2425 internal const string AdapterPatternOption = "13" ;
2526 internal const string FlyweightPatternOption = "14" ;
2627 internal const string MediatorPatternOption = "15" ;
28+ internal const string ObserverPatternOption = "16.1" ;
29+ internal const string ObserverPatternOptionWithType = "16.2" ;
30+
2731 internal const string ChainOfResponsibilityPatternOption = "21" ;
2832 internal const string ChainOfResponsibilityPatternOption2 = "21.2" ;
2933 internal const string ChainOfResponsibilityPatternOption3 = "21.3" ;
@@ -33,6 +37,7 @@ internal static class PatternOptions
3337 internal const string StatePatternOptionDriveExample = "23.2" ;
3438 internal const string StrategyPatternOptionSender = "24" ;
3539 internal const string StrategyPatternOptionPayment = "24.2" ;
40+
3641 internal const string FactoryOption = "31" ;
3742 internal const string AbstractFactoryOption = "32" ;
3843 internal const string BuilderPatternOption = "33" ;
@@ -73,6 +78,14 @@ internal static class PatternOptions
7378 MediatorPatternOption ,
7479 new PatternExampleMap ( "Flyweight Pattern >> Drawing shapes" , new MediatorPatternExample ( ) )
7580 } ,
81+ {
82+ ObserverPatternOption ,
83+ new PatternExampleMap ( "Observer Pattern >> News Publisher" , new ObserverPatternExample ( ) )
84+ } ,
85+ {
86+ ObserverPatternOptionWithType ,
87+ new PatternExampleMap ( "Observer Pattern >> News Publisher with type" , new ObserverPatternExampleWithCategory ( ) )
88+ } ,
7689
7790 // Behavioral Patterns
7891 {
0 commit comments