|
8 | 8 | using GofConsoleApp.Examples.Creational.BuilderPattern; |
9 | 9 | using GofConsoleApp.Examples.Creational.FactoryPattern; |
10 | 10 | using GofConsoleApp.Examples.Structural.AdapterPattern; |
| 11 | +using GofConsoleApp.Examples.Structural.BridgePattern; |
11 | 12 | using GofConsoleApp.Examples.Structural.DecoratorPattern; |
12 | 13 | using GofConsoleApp.Examples.Structural.FlyweightPattern; |
13 | 14 | using GofConsoleApp.Examples.Structural.ProxyPattern; |
@@ -37,6 +38,9 @@ internal static class PatternOptions |
37 | 38 | internal const string StatePatternOptionDriveExample = "23.2"; |
38 | 39 | internal const string StrategyPatternOptionSender = "24"; |
39 | 40 | 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"; |
40 | 44 |
|
41 | 45 | internal const string FactoryOption = "31"; |
42 | 46 | internal const string AbstractFactoryOption = "32"; |
@@ -84,7 +88,8 @@ internal static class PatternOptions |
84 | 88 | }, |
85 | 89 | { |
86 | 90 | ObserverPatternOptionWithType, |
87 | | - new PatternExampleMap("Observer Pattern >> News Publisher with type", new ObserverPatternExampleWithCategory()) |
| 91 | + new PatternExampleMap("Observer Pattern >> News Publisher with type", |
| 92 | + new ObserverPatternExampleWithCategory()) |
88 | 93 | }, |
89 | 94 |
|
90 | 95 | // Behavioral Patterns |
@@ -127,6 +132,20 @@ internal static class PatternOptions |
127 | 132 | StrategyPatternOptionPayment, |
128 | 133 | new PatternExampleMap("Strategy Pattern >> Payment Example", new StrategyPatternPaymentExample()) |
129 | 134 | }, |
| 135 | + { |
| 136 | + BridgePatterOptionSingleImplementations, |
| 137 | + new PatternExampleMap("Bridge Pattern >> With Single Implementation", |
| 138 | + new BridgePatternExampleSingleImplementations()) |
| 139 | + }, |
| 140 | + { |
| 141 | + BridgePatterOptionMultipleImplementations, |
| 142 | + new PatternExampleMap("Bridge Pattern >> With Multiple Implementations", |
| 143 | + new BridgePatternExampleMultipleImplementations()) |
| 144 | + }, |
| 145 | + { |
| 146 | + BridgePatterOptionMarker, |
| 147 | + new PatternExampleMap("Bridge Pattern >> With Marker", new BridgePatternExampleWithMarker()) |
| 148 | + }, |
130 | 149 |
|
131 | 150 | // Creational Patterns |
132 | 151 | { |
|
0 commit comments