示例#1
0
 public void Initialize()
 {
     try
     {
         Mapper.Configuration.AssertConfigurationIsValid();
     }
     catch (System.Exception)
     {
         Mapper.Initialize(config =>
         {
             config.AddProfile<RCE.Infrastructure.MapperProfile>();
         }); ;
     }
     _userToProductRepository = new UserToProductRepository();
 }
示例#2
0
 public BaseUserToProductBusinessLogic(IUserToProductQueryService userToProductQueryService, IUserToProductRepository userToProductRepository)
 {
     _userToProductRepository   = userToProductRepository;
     _userToProductQueryService = userToProductQueryService;
 }