public CompositeGreetingFactory(IGreetingFactory one, IGreetingFactory two) { _one = one; _two = two; }
public static IGreetingFactory Then(this IGreetingFactory first, IGreetingFactory second) => new CompositeGreetingFactory(first, second);
public GreetingService(IGreetingFactory greetingFactory, ILanguageFactory languageFactory) { // store the factory until we need it this.greetingFactory = greetingFactory; }
public GreetingController(IGreetingFactory _greetingFactory) { greetingFactory = _greetingFactory; }