/// <summary> /// Use IoC container to get the logger dependency /// </summary> /// <param name="logger"></param> public SimpleCalculatorLib(ISimpleCalculatorLogger logger) { _logger = logger; }
public SimpleCalculatorLib() { //Create the dependency directly (Avoiding SOLID principle) _logger = new SimpleCalculatorConsoleLogger(); }