public EntryRulesService(IEntryRulesRepository entryRulesRepository) { _entryRulesRepository = entryRulesRepository; // Initialize the store. var initialState = _entryRulesRepository.Fetch(); _entryRulesStore = new EntryRulesStore(initialState); }
/// <summary> /// Call this before you process. /// </summary> public void Setup() { _setting = _settingsRepository.Fetch(); _rules = _rulesRepository.Fetch(); }