Ejemplo n.º 1
0
 public DogsController(IContentfulClient contentfulClient)
 {
     _contentfulClient = contentfulClient;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 public DogsController(IContentfulClient contentfulClient)
 {
     _contentfulClient = contentfulClient;
 }
Ejemplo n.º 4
0
        private static ContentfulBlogRepository CreateContentfulBlogRepository(IContentfulClient client)
        {
            var logger = Mock.Of <ILogger <ContentfulBlogRepository> >();

            return(new ContentfulBlogRepository(client, logger));
        }
Ejemplo n.º 5
0
 public Footer(IContentfulClient client)
 {
     _client = client;
 }
 public IndexModel(IConfiguration configuration, IContentfulClient client, IOptions <ContentfulOptions> contentfulOptions)
 {
     this.client        = client;
     this.configuration = configuration;
 }
Ejemplo n.º 7
0
 public CommsRepository(ContentfulConfig config, IContentfulClientManager clientManager, IContentfulFactory <ContentfulCommsHomepage, CommsHomepage> commsHomepageFactory)
 {
     _client = clientManager.GetClient(config);
     _commsHomepageFactory = commsHomepageFactory;
 }
Ejemplo n.º 8
0
 public Recipe(string accessToken, string space)
 {
     this.contentfulClient = new ContentfulClient(accessToken, space);
 }
Ejemplo n.º 9
0
 /// <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;
 }
Ejemplo n.º 10
0
 public GroupAdvisorRepository(ContentfulConfig config, IContentfulClientManager contentfulClientManager, IContentfulFactory <ContentfulGroupAdvisor, GroupAdvisor> contentfulFactory)
 {
     _client            = contentfulClientManager.GetClient(config);
     _contentfulFactory = contentfulFactory;
 }