22 lines
574 B
C#
22 lines
574 B
C#
using AutoMapper;
|
|
using Nop.Core.Infrastructure.Mapper;
|
|
using Nop.Web.Areas.Admin.Infrastructure.Mapper;
|
|
using NUnit.Framework;
|
|
|
|
namespace Nop.Tests.Nop.Web.Tests.Admin.Infrastructure;
|
|
|
|
[TestFixture]
|
|
public class AutoMapperConfigurationTest
|
|
{
|
|
[Test]
|
|
public void ConfigurationIsValid()
|
|
{
|
|
var config = new MapperConfiguration(cfg =>
|
|
{
|
|
cfg.AddProfile(typeof(AdminMapperConfiguration));
|
|
});
|
|
|
|
AutoMapperConfiguration.Init(config);
|
|
AutoMapperConfiguration.MapperConfiguration.AssertConfigurationIsValid();
|
|
}
|
|
} |