public Retrievers(string blogConnectionString) { this.ImagesRetriever = new ImagesRetriever(blogConnectionString); this.ArticlesRetriever = new ArticlesRetriever(blogConnectionString); this.UsersRetriever = new UsersRetriever(blogConnectionString); this.FilesRetriever = new FilesRetriever(blogConnectionString); this.GalleryRetriever = new GalleryRetriever(blogConnectionString); }
public GalleryApiController( ILog log, IServices services, IRetrievers retrievers, IRepositories repositories) : base(log) { this.galleryService = services.GalleryService; this.galleryRetriever = retrievers.GalleryRetriever; this.galleryRepository = repositories.GalleryRepository; }
public GalleryRetriever_Tests() { IRetrievers retrievers = DependencyResolver.Resolve <IRetrievers>(); this.galleryRetriever = retrievers.GalleryRetriever; IRepositories repositories = DependencyResolver.Resolve <IRepositories>(); this.galleryRepository = repositories.GalleryRepository; this.imagesRepository = repositories.ImagesRepository; this.filesRepository = repositories.FilesRepository; }
public PhotoGalleryController(ILog log, IRetrievers retrievers, IRepositories repositories) : base(log) { this.galleryRetriever = retrievers.GalleryRetriever; this.galleryRepository = repositories.GalleryRepository; }