public ActionResult RecentArchives() { var posts = _postProvider.GetPosts(); ArchiveProvider archive = new ArchiveProvider(posts.ToList()); return(PartialView(archive)); }
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; }
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}"; }
public ArchiveProviderTests() { target = new ArchiveProvider(); }