public void Trigger_File_Generator_Sets_Trigger_File_Name_If_Not_Set_Before_Generation()
        {
            var resultFile = _sut.GenerateTriggerFile <TestClass>();

            Assert.True(File.Exists(resultFile));

            DeleteFile(resultFile);
        }
        public void Init(Func <T> getCache)
        {
            var cacheKey = GetCacheKey();

            if (_TriggerFileManager.ShouldRefreshCache <T>(cacheKey))
            {
                _TriggerFileManager.GenerateTriggerFile <T>(cacheKey);

                if (_getCacheFn == null)
                {
                    _getCacheFn = getCache;
                }

                var itemsToCache = _getCacheFn();

                _cache.Set(cacheKey, itemsToCache);
            }
        }