public BookListService(ILogger logger) { if (ReferenceEquals(logger, null)) { logger = NLogProvider.GetLogger(nameof(BookListService)); } logger.Debug("Constructor {0} with one parameter is started.", nameof(BookListService)); this.logger = logger; }
public BookListService(IRepository <Book> repository, ILogger logger) { Repository = repository; if (ReferenceEquals(logger, null)) { logger = NLogProvider.GetLogger(nameof(BookListService)); } logger.Debug("Constructor {0} with two parameters is started.", nameof(BookListService)); }