Пример #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;
 }