26 lines
906 B
C#
26 lines
906 B
C#
using AutoMapper;
|
|
using Strata.Analytics.Biz.ContentMigration;
|
|
using Strata.Analytics.Biz.DataSources;
|
|
using Strata.Analytics.Biz.Extracts;
|
|
using Strata.Analytics.Biz.Workbooks;
|
|
|
|
namespace Strata.Analytics.Test.Unit.Biz.TestData
|
|
{
|
|
internal static class AutoMapperMock
|
|
{
|
|
public static IMapper GetAutoMapper()
|
|
{
|
|
var mapperConfig = new MapperConfiguration(cfg =>
|
|
{
|
|
cfg.AddProfile(new DataSourceAutoMapperProfile());
|
|
cfg.AddProfile(new WorkbookAutoMapperProfile());
|
|
cfg.AddProfile(new WorkbookSaveInfoAutoMapperProfile());
|
|
cfg.AddProfile(new ExtractAutoMapperProfile());
|
|
cfg.AddProfile(new ExtractSaveInfoAutoMapperProfile());
|
|
cfg.AddProfile(new ContentMigrationAutoMapperProfile());
|
|
});
|
|
return mapperConfig.CreateMapper();
|
|
}
|
|
}
|
|
}
|