コード例 #1
0
 public DogsController(IContentfulClient contentfulClient)
 {
     _contentfulClient = contentfulClient;
 }
コード例 #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;
 }
コード例 #3
0
 public DogsController(IContentfulClient contentfulClient)
 {
     _contentfulClient = contentfulClient;
 }
コード例 #4
0
        private static ContentfulBlogRepository CreateContentfulBlogRepository(IContentfulClient client)
        {
            var logger = Mock.Of <ILogger <ContentfulBlogRepository> >();

            return(new ContentfulBlogRepository(client, logger));
        }
コード例 #5
0
ファイル: Footer.cs プロジェクト: Moser2010/WhoAmI
 public Footer(IContentfulClient client)
 {
     _client = client;
 }
コード例 #6
0
 public IndexModel(IConfiguration configuration, IContentfulClient client, IOptions <ContentfulOptions> contentfulOptions)
 {
     this.client        = client;
     this.configuration = configuration;
 }
コード例 #7
0
 public CommsRepository(ContentfulConfig config, IContentfulClientManager clientManager, IContentfulFactory <ContentfulCommsHomepage, CommsHomepage> commsHomepageFactory)
 {
     _client = clientManager.GetClient(config);
     _commsHomepageFactory = commsHomepageFactory;
 }
コード例 #8
0
ファイル: Recipe.cs プロジェクト: ajay-sundaram/codebase
 public Recipe(string accessToken, string space)
 {
     this.contentfulClient = new ContentfulClient(accessToken, space);
 }
コード例 #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;
 }
コード例 #10
0
 public GroupAdvisorRepository(ContentfulConfig config, IContentfulClientManager contentfulClientManager, IContentfulFactory <ContentfulGroupAdvisor, GroupAdvisor> contentfulFactory)
 {
     _client            = contentfulClientManager.GetClient(config);
     _contentfulFactory = contentfulFactory;
 }