Пример #1
0
        private static Serial GetSerialModelWithCache(string title, bool useCache = true)
        {
            Serial model = null;
            if (useCache)
            {
                model = new SerialRepository().Get(title);
            }

            if (model == null)
            {
                var url = SerialsService.GetRageTvUrl(title);

                model = GetSerialViewModel(url);
            }
            return model;
        }
Пример #2
0
 public void Initialize()
 {
     _sut = new SerialRepository();
 }