public MailMessageService(LogUtility logger) { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; this.Logger = logger; }
public void Setup() { var connectionString = ConfigurationManager.ConnectionStrings["MySqlConnection"].ConnectionString; _db = new ReminderDatabase(); var logRepo = new LoggerRepository(); logRepo.Initialize( connectionString ); _logger = new LogUtility(); _logger.Initialize( logRepo ); _db.Initialize( connectionString, _logger ); }
public void Initialize(string connectionString, LogUtility logger) { _logger = logger; _db = new MySqlRepositoryBase(); this._db.Initialize( connectionString, connectionString ); }