public ActionResult RecentArchives()
        {
            var             posts   = _postProvider.GetPosts();
            ArchiveProvider archive = new ArchiveProvider(posts.ToList());

            return(PartialView(archive));
        }
Esempio n. 2
0
 public AppUpdateJob(UpdateProvider updateProvider, EnvironmentProvider environmentProvider, DiskProvider diskProvider,
                     HttpProvider httpProvider, ProcessProvider processProvider, ArchiveProvider archiveProvider, ConfigFileProvider configFileProvider)
 {
     _updateProvider      = updateProvider;
     _environmentProvider = environmentProvider;
     _diskProvider        = diskProvider;
     _httpProvider        = httpProvider;
     _processProvider     = processProvider;
     _archiveProvider     = archiveProvider;
     _configFileProvider  = configFileProvider;
 }
Esempio n. 3
0
        public ArchiveProviderTests()
        {
            _logger = Substitute.For <ILogger <ArchiveProvider> >();
            _sut    = new ArchiveProvider(_logger);

            _imageData = string.Join(Environment.NewLine,
                                     Enumerable.Range(0, 10000)
                                     .Select(a => Guid.NewGuid()));
            WriteImageFile($"{Guid.NewGuid()}.jpg");

            _metadata = $"Additional information about {_filename}";
        }
Esempio n. 4
0
 public ArchiveProviderTests()
 {
     target = new ArchiveProvider();
 }