Default nopCommerce code unit test failure

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 лет назад
When I have downloaded default nopCommerce code I can see that in class AutoMapperConfigurationTest the Configuration_is_valid() method is failing to pass test.

Problem is with automapper configuration in "AdminMapperConfiguration.cs" we need to add an ignore to AzureCacheControlHeader.


  cfg.CreateMap<MediaSettingsModel, MediaSettings>()
                    .ForMember(dest => dest.ImageSquarePictureSize, mo => mo.Ignore())
                    .ForMember(dest => dest.AutoCompleteSearchThumbPictureSize, mo => mo.Ignore())
                    .ForMember(dest => dest.AzureCacheControlHeader, mo => mo.Ignore());


Does anyone has same problem ?
6 лет назад
Just ran into the same failing test. It's not corrected in develop branch yet. Found an open issue: https://github.com/nopSolutions/nopCommerce/issues/2256

Fix is scheduled for 4.0
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.