private ReminderDatabase CreateReminderRepository() { var repo = new ReminderDatabase(); repo.Initialize( this.ConnectionString, this.Logger ); return repo; }
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 ); }