using System.Diagnostics.CodeAnalysis; namespace Diligent.WebAPI.Business.MappingProfiles { public class AdMappingProfile : Profile { [ExcludeFromCodeCoverage] public AdMappingProfile() { #region DTO to Model CreateMap(); CreateMap(); #endregion #region Model to DTO CreateMap(); CreateMap(); CreateMap(); CreateMap() .ForMember(dest => dest.Count, opt => opt.MapFrom(x => x.Applicants.Count)); #endregion } } }