Beispiel #1
0
 public MailMessageService(LogUtility logger)
 {
     Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
       Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
       this.Logger = logger;
 }
Beispiel #2
0
        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 );
        }
Beispiel #3
0
        public void Initialize(string connectionString, LogUtility logger)
        {
            _logger = logger;

              _db = new MySqlRepositoryBase();
              this._db.Initialize( connectionString, connectionString );
        }