public DogsController(IContentfulClient contentfulClient) { _contentfulClient = contentfulClient; }
/// <summary> /// Instantiates the model. /// </summary> /// <param name="client">The client used to communicate with the Contentful API.</param> /// <param name="visitedLessonsManager">Class manages which lessons and courses have been visited.</param> /// <param name="breadcrumbsManager">Class that manages which breadcrumbs the view should display.</param> public IndexModel(IContentfulClient client, IVisitedLessonsManager visitedLessonsManager, IBreadcrumbsManager breadcrumbsManager, IViewLocalizer localizer) : base(client) { _visitedLessonsManager = visitedLessonsManager; _breadcrumbsManager = breadcrumbsManager; _localizer = localizer; }
private static ContentfulBlogRepository CreateContentfulBlogRepository(IContentfulClient client) { var logger = Mock.Of <ILogger <ContentfulBlogRepository> >(); return(new ContentfulBlogRepository(client, logger)); }
public Footer(IContentfulClient client) { _client = client; }
public IndexModel(IConfiguration configuration, IContentfulClient client, IOptions <ContentfulOptions> contentfulOptions) { this.client = client; this.configuration = configuration; }
public CommsRepository(ContentfulConfig config, IContentfulClientManager clientManager, IContentfulFactory <ContentfulCommsHomepage, CommsHomepage> commsHomepageFactory) { _client = clientManager.GetClient(config); _commsHomepageFactory = commsHomepageFactory; }
public Recipe(string accessToken, string space) { this.contentfulClient = new ContentfulClient(accessToken, space); }
/// <summary> /// Instantiates the view component. /// </summary> /// <param name="client">The client used to communicate with the Contentful API.</param> public LocalesViewComponent(IContentfulClient client) { _client = client; }
public GroupAdvisorRepository(ContentfulConfig config, IContentfulClientManager contentfulClientManager, IContentfulFactory <ContentfulGroupAdvisor, GroupAdvisor> contentfulFactory) { _client = contentfulClientManager.GetClient(config); _contentfulFactory = contentfulFactory; }