99using GofConsoleApp . Examples . Creational . FactoryPattern ;
1010using GofConsoleApp . Examples . Structural . AdapterPattern ;
1111using GofConsoleApp . Examples . Structural . BridgePattern ;
12+ using GofConsoleApp . Examples . Structural . CompositePattern ;
1213using GofConsoleApp . Examples . Structural . DecoratorPattern ;
1314using GofConsoleApp . Examples . Structural . FlyweightPattern ;
1415using GofConsoleApp . Examples . Structural . ProxyPattern ;
@@ -25,9 +26,11 @@ internal static class PatternOptions
2526 internal const string ProxyPatternOptionBoundedInputOutput = "12.3" ;
2627 internal const string AdapterPatternOption = "13" ;
2728 internal const string FlyweightPatternOption = "14" ;
28- internal const string MediatorPatternOption = "15" ;
29- internal const string ObserverPatternOption = "16.1" ;
30- internal const string ObserverPatternOptionWithType = "16.2" ;
29+ internal const string BridgePatterOptionSingleImplementations = "15" ;
30+ internal const string BridgePatterOptionMultipleImplementations = "15.2" ;
31+ internal const string BridgePatterOptionMarker = "15.3" ;
32+ internal const string CompositePatternOptionWithInput = "16.1" ;
33+ internal const string CompositePatternOptionWithoutInput = "16.2" ;
3134
3235 internal const string ChainOfResponsibilityPatternOption = "21" ;
3336 internal const string ChainOfResponsibilityPatternOption2 = "21.2" ;
@@ -38,9 +41,9 @@ internal static class PatternOptions
3841 internal const string StatePatternOptionDriveExample = "23.2" ;
3942 internal const string StrategyPatternOptionSender = "24" ;
4043 internal const string StrategyPatternOptionPayment = "24.2" ;
41- internal const string BridgePatterOptionSingleImplementations = "25" ;
42- internal const string BridgePatterOptionMultipleImplementations = "25.2 " ;
43- internal const string BridgePatterOptionMarker = "25.3 " ;
44+ internal const string MediatorPatternOption = "25" ;
45+ internal const string ObserverPatternOption = "26.1 " ;
46+ internal const string ObserverPatternOptionWithType = "26.2 " ;
4447
4548 internal const string FactoryOption = "31" ;
4649 internal const string AbstractFactoryOption = "32" ;
@@ -79,17 +82,26 @@ internal static class PatternOptions
7982 new PatternExampleMap ( "Flyweight Pattern >> Drawing shapes" , new FlyweightPatternExample ( ) )
8083 } ,
8184 {
82- MediatorPatternOption ,
83- new PatternExampleMap ( "Flyweight Pattern >> Drawing shapes" , new MediatorPatternExample ( ) )
85+ BridgePatterOptionSingleImplementations ,
86+ new PatternExampleMap ( "Bridge Pattern >> With Single Implementation" ,
87+ new BridgePatternExampleSingleImplementations ( ) )
8488 } ,
8589 {
86- ObserverPatternOption ,
87- new PatternExampleMap ( "Observer Pattern >> News Publisher" , new ObserverPatternExample ( ) )
90+ BridgePatterOptionMultipleImplementations ,
91+ new PatternExampleMap ( "Bridge Pattern >> With Multiple Implementations" ,
92+ new BridgePatternExampleMultipleImplementations ( ) )
8893 } ,
8994 {
90- ObserverPatternOptionWithType ,
91- new PatternExampleMap ( "Observer Pattern >> News Publisher with type" ,
92- new ObserverPatternExampleWithCategory ( ) )
95+ BridgePatterOptionMarker ,
96+ new PatternExampleMap ( "Bridge Pattern >> With Marker" , new BridgePatternExampleWithMarker ( ) )
97+ } ,
98+ {
99+ CompositePatternOptionWithInput ,
100+ new PatternExampleMap ( "CompositePattern >> With Input" , new CompositePatternExampleWithInput ( ) )
101+ } ,
102+ {
103+ CompositePatternOptionWithoutInput ,
104+ new PatternExampleMap ( "CompositePattern >> Without Input" , new CompositePatternExampleWithoutInput ( ) )
93105 } ,
94106
95107 // Behavioral Patterns
@@ -133,18 +145,17 @@ internal static class PatternOptions
133145 new PatternExampleMap ( "Strategy Pattern >> Payment Example" , new StrategyPatternPaymentExample ( ) )
134146 } ,
135147 {
136- BridgePatterOptionSingleImplementations ,
137- new PatternExampleMap ( "Bridge Pattern >> With Single Implementation" ,
138- new BridgePatternExampleSingleImplementations ( ) )
148+ MediatorPatternOption ,
149+ new PatternExampleMap ( "Flyweight Pattern >> Drawing shapes" , new MediatorPatternExample ( ) )
139150 } ,
140151 {
141- BridgePatterOptionMultipleImplementations ,
142- new PatternExampleMap ( "Bridge Pattern >> With Multiple Implementations" ,
143- new BridgePatternExampleMultipleImplementations ( ) )
152+ ObserverPatternOption ,
153+ new PatternExampleMap ( "Observer Pattern >> News Publisher" , new ObserverPatternExample ( ) )
144154 } ,
145155 {
146- BridgePatterOptionMarker ,
147- new PatternExampleMap ( "Bridge Pattern >> With Marker" , new BridgePatternExampleWithMarker ( ) )
156+ ObserverPatternOptionWithType ,
157+ new PatternExampleMap ( "Observer Pattern >> News Publisher with type" ,
158+ new ObserverPatternExampleWithCategory ( ) )
148159 } ,
149160
150161 // Creational Patterns
0 commit comments