Esempio n. 1
0
 public void Initialize(LoggerRepository db)
 {
     this._db = db;
 }
Esempio n. 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 );
        }