This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig.Profiles | |
{ | |
public class PersonProfile : Profile | |
{ | |
public PersonProfile() | |
{ | |
CreateMap<Person, DisplayedPersonDto>(); | |
CreateMap<Person, NewsletterDto>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig.Profiles | |
{ | |
public class CarProfile : Profile | |
{ | |
public CarProfile() | |
{ | |
CreateMap<Car, DisplayedCarDto>(); | |
CreateMap<Car, CarPerformanceDto>().ReverseMap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig | |
{ | |
public class AutoMapperConfiguration : IAutoMapperConfiguration | |
{ | |
public MapperConfiguration Configure() | |
{ | |
var config = new MapperConfiguration(cfg => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig | |
{ | |
public interface IAutoMapperConfiguration | |
{ | |
MapperConfiguration Configure(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AutomapperConfiguration.AutoMapperConfig.Profiles; | |
using AutoMapper; | |
namespace AutomapperConfiguration.AutoMapperConfig | |
{ | |
public class AutoMapperConfiguration : IAutoMapperConfiguration | |
{ | |
public MapperConfiguration Configure() | |
{ | |
var config = new MapperConfiguration(cfg => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using AutomapperConfiguration.AutoMapperConfig; | |
using AutoMapper; | |
namespace AutomapperConfiguration | |
{ | |
public class PeopleService | |
{ | |
private readonly IMapper _mapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using AutomapperConfiguration.AutoMapperConfig; | |
namespace AutomapperConfiguration | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Azure.WebJobs.Host; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Configuration; | |
using System.IO; | |
using System.Reflection; | |
using Xunit.Runners; | |
using System.Threading; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace TestsViaFunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.Azure.WebJobs.Host; |
OlderNewer