public FreshController(CakeFactoryFactory cakeFactoryFactory)
 {
     _cakeFactory = cakeFactoryFactory.GetFactory("fresh");
 }
예제 #2
0
 public StaleController(CakeFactoryFactory cakeFactoryFactory)
 {
     _cakeFactory = cakeFactoryFactory.GetFactory("stale");
 }