The backing type is not a registered PropertyTypeDefinition

Vote:
 

Hi,

We use GETA/SEO.Sitemaps in our solution and this works fine for the main solution.

As seen in the example below our SEOSitemaps property uses a BackingType called PropertySEOSitemaps which resides in the GETA package:

[UIHint("SeoSitemap")]
[BackingType(typeof(PropertySEOSitemaps))]
public virtual string SEOSitemaps { get; set; }

This works fine for the main solution, but when we are trying to run our unit tests, we get the error message following during initialization:

'The backing type 'Geta.SEO.Sitemaps.SpecializedProperties.PropertySEOSitemaps' is not a registered PropertyTypeDefinition.

If I recreate the class myself in code and change the backingtype of the property to the "clone" it works fine in both the main solution and tests, but this is obviously not something we want to do.

Have spent quite some hours on this problem but we have found no solution.

Is there a way to manually register this backing type/PropertyTypeDefinition from the GETA package during initialization?

#289067
Oct 12, 2022 8:45
Vote:
 

Look at the code from the Get.SEO.Sitemaps initialization module on how to manually register the PropertySEOSitemaps property in your unit test class initialization

https://github.com/Geta/SEO.Sitemaps/blob/master/src/Geta.SEO.Sitemaps/SitemapInitialization.cs

#290389
Oct 21, 2022 6:24
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.