Beispiel #1
0
        public BlacklistController()
        {
            var connectionString = ConfigurationManager.ConnectionStrings["Data"].ConnectionString;

            _blacklistEntriesGetter = new BlacklistEntriesGetter(connectionString);
            _blacklistEntriesSetter = new BlacklistEntriesSetter(connectionString);
            _blacklistEntryAdder    = new BlacklistEntryAdder(connectionString, _blacklistEntriesGetter, _blacklistEntriesSetter);
            _blacklistEntryRemover  = new BlacklistEntryRemover(connectionString, _blacklistEntriesGetter, _blacklistEntriesSetter);
        }
Beispiel #2
0
 public BlacklistEntryAdder(string connectionString, IBlacklistEntriesGetter blacklistEntriesGetter, IBlacklistEntriesSetter blacklistEntriesSetter) : base(connectionString)
 {
     _blacklistEntriesGetter = blacklistEntriesGetter;
     _blacklistEntriesSetter = blacklistEntriesSetter;
 }