예제 #1
0
 public SummonerService(ISummonerRepository summonerRepository, ILeagueApiService apiService, IRegionRepository regionRepository, IModelMapper<Summoner, SummonerModel> summonerModelMapper, ISecureTokenGenerator secureTokenGenerator)
 {
     _summonerRepository = summonerRepository;
     _apiService = apiService;
     _regionRepository = regionRepository;
     _summonerModelMapper = summonerModelMapper;
     _secureTokenGenerator = secureTokenGenerator;
 }
 public AutoMappedViewResult(IModelMapper modelMapper,
     object sourceEntity, 
     Type viewModelType)
 {
     _modelMapper = modelMapper;
     SourceEntity = sourceEntity;
     ViewModelType = viewModelType;
 }
예제 #3
0
 public DownloadModelFactory(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
예제 #4
0
 public EntitySearch(IContext context, IModelMapper <TModel> mapper, IEntitySearchFormatter <TModel> searchFormatter)
 {
     _context         = context;
     _mapper          = mapper;
     _searchFormatter = searchFormatter;
 }
예제 #5
0
 public EventController(ITimelineRepository timelineRepository, IModelMapper mapper, IRepository<Event> eventRepository)
 {
     _timelineRepository = timelineRepository;
     _eventRepository = eventRepository;
     _mapper = mapper;
 }
예제 #6
0
 public AllBooksQueryHandler(
     IDotNetCoreKatasDbContext dbContext,
     IModelMapper <BookDomainModel, BookReadModel> mapper)
     : base(dbContext, mapper)
 {
 }
 public HomeController(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
 public BooksController(IEntityRepository <BookEntity, BookFilter> repository, IModelMapper <BookEntity, Book> modelMapper, IPagingLinksFactory <BookFilter> pagingLinksFactory, IMemoryCache memoryCache) :
     base(repository, modelMapper, pagingLinksFactory, memoryCache, "Books")
 {
 }
 public AccountController(IRepository<Account> accountRepository, ITimelineRepository timelineRepository, IModelMapper mapper)
 {
     _accountRepository = accountRepository;
     _mapper = mapper;
     _timelineRepository = timelineRepository;
 }
예제 #10
0
 public ManufacturersController(IManufacturerService manufacturerService, IModelMapper modelMapper, IDataSerializer dataSerializer)
 {
     _manufacturerService = manufacturerService;
     _modelMapper         = modelMapper;
     _dataSerializer      = dataSerializer;
 }
예제 #11
0
 public PressReleaseController(IViewPathResolver viewPathResolver, IModelMapper modelMapper) : base(viewPathResolver, modelMapper)
 {
 }
예제 #12
0
 public AuthService(UserManager <User> userManager, SignInManager <User> signInManager, TechschoolContext context, RoleManager <IdentityRole> roleManager, IModelMapper modelMapper)
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.context       = context;
     this.roleManager   = roleManager;
     this.modelMapper   = modelMapper;
 }
예제 #13
0
 public RoleService(ApplicationDbContext context, IModelMapper mapper) : base(context, mapper)
 {
 }
예제 #14
0
 public BaseService(ApplicationDbContext context,
                    IModelMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public IDraftApprenticeshipDetailsViewModelMapper(ICommitmentsApiClient commitmentsApiClient, IModelMapper modelMapper)
 {
     _commitmentsApiClient = commitmentsApiClient;
     _modelMapper          = modelMapper;
 }
예제 #16
0
        private DynamicMethodModelFactory CreateFactory(IModelMapper modelMapper)
        {
            DynamicMethodModelFactory factory = new DynamicMethodModelFactory(new DatabaseMapper(modelMapper));

            return(factory);
        }
예제 #17
0
 public UploadItemFormController()
 {
     ModelMapper = DependencyResolver.Current.GetService <IModelMapper>();
 }
 public AvailableAttributesController(IAvailableAttributeService availableAttributeService, IAvailableAttributeValueService availableAttributeValueService, IModelMapper modelMapper, IDataSerializer dataSerializer)
 {
     _availableAttributeService      = availableAttributeService;
     _availableAttributeValueService = availableAttributeValueService;
     _modelMapper    = modelMapper;
     _dataSerializer = dataSerializer;
 }
예제 #19
0
 public AccountService(UserManager <User> userManager, IOptions <AuthSettings> authSettings, IModelMapper mapper)
 {
     _userManager  = userManager;
     _authSettings = authSettings.Value;
     _mapper       = mapper;
 }
예제 #20
0
 public WarehouseController(IWarehouseService warehouseService, IWarehouseModelFactory warehouseModelFactory, IAddressService addressService, IModelMapper modelMapper, CatalogSettings catalogSettings)
 {
     _warehouseService      = warehouseService;
     _warehouseModelFactory = warehouseModelFactory;
     _addressService        = addressService;
     _modelMapper           = modelMapper;
     _catalogSettings       = catalogSettings;
 }
예제 #21
0
 public ApprenticeshipUpdateController(IMediator mediator, IModelMapper modelMapper)
 {
     _mediator    = mediator;
     _modelMapper = modelMapper;
 }
예제 #22
0
 public GdprModelFactory(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
예제 #23
0
 public EmployeeService(IEmployeeRepository repository, IModelMapper modelMapper) : base(repository, modelMapper)
 {
 }
예제 #24
0
 public BooksController(IModelService <IBook, BookFilter> modelService, IModelMapper <IBook, Book> modelMapper, IPagingLinksFactory <BookFilter> pagingLinksFactory)
     : base(modelService, modelMapper, pagingLinksFactory)
 {
 }
예제 #25
0
 public CategoryService(ApplicationDbContext context, IModelMapper mapper) : base(context, mapper)
 {
 }
예제 #26
0
 public ModelMapper()
 {
     modelMapper = (IModelMapper <T>)Activator.CreateInstance(typeof(T), new object[] { });
 }
예제 #27
0
 public EntitySearch(IContext context, IModelMapper <TModel> mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
예제 #28
0
 public ModelMapper(HttpRequestMessage request)
 {
     modelMapper = (IModelMapper <T>)Activator.CreateInstance(typeof(T), new object[] { request });
 }
예제 #29
0
 public ReviewsController(IReviewService reviewService, IOrderService orderService, CatalogSettings catalogSettings, IModelMapper modelMapper, IProductService productService, IProductModelFactory productModelFactory, IReviewModelFactory reviewModelFactory)
 {
     _reviewService       = reviewService;
     _orderService        = orderService;
     _catalogSettings     = catalogSettings;
     _modelMapper         = modelMapper;
     _productService      = productService;
     _productModelFactory = productModelFactory;
     _reviewModelFactory  = reviewModelFactory;
 }
예제 #30
0
 public HeadingController(IViewPathResolver viewPathResolver, IModelMapper modelMapper) : base(viewPathResolver, modelMapper)
 {
 }
예제 #31
0
 public AddressModelFactory(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
 /// <summary>
 /// Creates a new instance of PageHeaderScriptsController
 /// </summary>
 /// <param name="modelMapper">The IModelMapper instance to use for Item to Model mapping, usually supplied through Dependency Injection.</param>
 public PageHeaderScriptsController(IModelMapper modelMapper) : base(modelMapper)
 {
 }
예제 #33
0
 /// <summary>
 /// Creates a new instance of BranchNavigationRepository
 /// </summary>
 /// <param name="modelMapper">The instance of IModelMapper to use for mapping Item fields to model properties, usually provided by dependency injection.</param>
 public BranchNavigationRepository(IModelMapper modelMapper)
 {
     ModelMapper = modelMapper;
 }
예제 #34
0
 public EmailsController(IEmailTemplateService emailTemplateService, IEmailAccountService emailAccountService, IModelMapper modelMapper, EmailSenderSettings emailSenderSettings, ISettingService settingService, IEmailSender emailSender, IDataSerializer dataSerializer, ICryptographyService cryptographyService, IEmailService emailService)
 {
     _emailTemplateService = emailTemplateService;
     _emailAccountService  = emailAccountService;
     _modelMapper          = modelMapper;
     _emailSenderSettings  = emailSenderSettings;
     _settingService       = settingService;
     _emailSender          = emailSender;
     _dataSerializer       = dataSerializer;
     _cryptographyService  = cryptographyService;
     _emailService         = emailService;
 }
 public ContentController(IModelMapper<MvcAreasItem, ContentViewModel> modelMapper)
 {
     Assert.ArgumentNotNull(modelMapper, "modelMapper");
     this.modelMapper = modelMapper;
 }
예제 #36
0
 public RegionService(IRegionRepository regionRepository, IModelMapper<Region, RegionModel> regionModelMapper)
 {
     _regionRepository = regionRepository;
     _regionModelMapper = regionModelMapper;
 }