Skip to content

Commit

Permalink
Moved content type model classes to correct namespace, usings cleanup…
Browse files Browse the repository at this point in the history
… and related files update. (#103)

* moved content type model classes to correct namespace, usings cleanup, related files update.
* updated tests
* disabled codecov patch check (Ondřej Chrastina)

Co-authored-by: Ondřej Chrastina <9218736+Simply007@users.noreply.github.com>
  • Loading branch information
MiroKentico and Simply007 authored Aug 26, 2021
1 parent 4be92fb commit 57f1e01
Show file tree
Hide file tree
Showing 34 changed files with 619 additions and 665 deletions.
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
patch: off

ignore:
- "tests/"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading.Tasks;
using Kentico.Kontent.Boilerplate.Models;
using Kentico.Kontent.Boilerplate.Models.ContentTypes;
using Kentico.Kontent.Delivery.Abstractions;
using Kentico.Kontent.Delivery.Urls.QueryParameters;
using Microsoft.AspNetCore.Mvc;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
{
public partial class AboutUs
{
public const string Codename = "about_us";
public const string FactsCodename = "facts";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<object> Facts { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class AboutUs
{
public const string Codename = "about_us";
public const string FactsCodename = "facts";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<object> Facts { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class AboutUs
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
{
public partial class Accessory
{
public const string Codename = "accessory";
public const string ImageCodename = "image";
public const string LongDescriptionCodename = "long_description";
public const string ManufacturerCodename = "manufacturer";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PriceCodename = "price";
public const string ProductNameCodename = "product_name";
public const string ProductStatusCodename = "product_status";
public const string ShortDescriptionCodename = "short_description";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<IAsset> Image { get; set; }
public string LongDescription { get; set; }
public string Manufacturer { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public decimal? Price { get; set; }
public string ProductName { get; set; }
public IEnumerable<ITaxonomyTerm> ProductStatus { get; set; }
public string ShortDescription { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class Accessory
{
public const string Codename = "accessory";
public const string ImageCodename = "image";
public const string LongDescriptionCodename = "long_description";
public const string ManufacturerCodename = "manufacturer";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PriceCodename = "price";
public const string ProductNameCodename = "product_name";
public const string ProductStatusCodename = "product_status";
public const string ShortDescriptionCodename = "short_description";
public const string SitemapCodename = "sitemap";
public const string UrlPatternCodename = "url_pattern";

public IEnumerable<IAsset> Image { get; set; }
public string LongDescription { get; set; }
public string Manufacturer { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public decimal? Price { get; set; }
public string ProductName { get; set; }
public IEnumerable<ITaxonomyTerm> ProductStatus { get; set; }
public string ShortDescription { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public IContentItemSystemAttributes System { get; set; }
public string UrlPattern { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class Accessory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
{
public partial class Article
{
public const string Codename = "article";
public const string BodyCopyCodename = "body_copy";
public const string MetaDescriptionCodename = "meta_description";
public const string MetaKeywordsCodename = "meta_keywords";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PersonasCodename = "personas";
public const string PostDateCodename = "post_date";
public const string RelatedArticlesCodename = "related_articles";
public const string SitemapCodename = "sitemap";
public const string SummaryCodename = "summary";
public const string TeaserImageCodename = "teaser_image";
public const string TitleCodename = "title";
public const string UrlPatternCodename = "url_pattern";

public string BodyCopy { get; set; }
public string MetaDescription { get; set; }
public string MetaKeywords { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public IEnumerable<ITaxonomyTerm> Personas { get; set; }
public DateTime? PostDate { get; set; }
public IEnumerable<object> RelatedArticles { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public string Summary { get; set; }
public IContentItemSystemAttributes System { get; set; }
public IEnumerable<IAsset> TeaserImage { get; set; }
public string Title { get; set; }
public string UrlPattern { get; set; }
}
// This code was generated by a kontent-generators-net tool
// (see https://github.com/Kentico/kontent-generators-net).
//
// Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// For further modifications of the class, create a separate file with the partial class.

using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class Article
{
public const string Codename = "article";
public const string BodyCopyCodename = "body_copy";
public const string MetaDescriptionCodename = "meta_description";
public const string MetaKeywordsCodename = "meta_keywords";
public const string MetadataMetaDescriptionCodename = "metadata__meta_description";
public const string MetadataMetaTitleCodename = "metadata__meta_title";
public const string MetadataOgDescriptionCodename = "metadata__og_description";
public const string MetadataOgImageCodename = "metadata__og_image";
public const string MetadataOgTitleCodename = "metadata__og_title";
public const string MetadataTwitterCreatorCodename = "metadata__twitter_creator";
public const string MetadataTwitterDescriptionCodename = "metadata__twitter_description";
public const string MetadataTwitterImageCodename = "metadata__twitter_image";
public const string MetadataTwitterSiteCodename = "metadata__twitter_site";
public const string MetadataTwitterTitleCodename = "metadata__twitter_title";
public const string PersonasCodename = "personas";
public const string PostDateCodename = "post_date";
public const string RelatedArticlesCodename = "related_articles";
public const string SitemapCodename = "sitemap";
public const string SummaryCodename = "summary";
public const string TeaserImageCodename = "teaser_image";
public const string TitleCodename = "title";
public const string UrlPatternCodename = "url_pattern";

public string BodyCopy { get; set; }
public string MetaDescription { get; set; }
public string MetaKeywords { get; set; }
public string MetadataMetaDescription { get; set; }
public string MetadataMetaTitle { get; set; }
public string MetadataOgDescription { get; set; }
public IEnumerable<IAsset> MetadataOgImage { get; set; }
public string MetadataOgTitle { get; set; }
public string MetadataTwitterCreator { get; set; }
public string MetadataTwitterDescription { get; set; }
public IEnumerable<IAsset> MetadataTwitterImage { get; set; }
public string MetadataTwitterSite { get; set; }
public string MetadataTwitterTitle { get; set; }
public IEnumerable<ITaxonomyTerm> Personas { get; set; }
public DateTime? PostDate { get; set; }
public IEnumerable<object> RelatedArticles { get; set; }
public IEnumerable<ITaxonomyTerm> Sitemap { get; set; }
public string Summary { get; set; }
public IContentItemSystemAttributes System { get; set; }
public IEnumerable<IAsset> TeaserImage { get; set; }
public string Title { get; set; }
public string UrlPattern { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using Kentico.Kontent.Delivery.Abstractions;

namespace Kentico.Kontent.Boilerplate.Models
namespace Kentico.Kontent.Boilerplate.Models.ContentTypes
{
public partial class Article : ISitemapItem
{
Expand Down
Loading

0 comments on commit 57f1e01

Please sign in to comment.