Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public DownloadModelFactory(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
Ejemplo n.º 4
0
 public EntitySearch(IContext context, IModelMapper <TModel> mapper, IEntitySearchFormatter <TModel> searchFormatter)
 {
     _context         = context;
     _mapper          = mapper;
     _searchFormatter = searchFormatter;
 }
Ejemplo n.º 5
0
 public EventController(ITimelineRepository timelineRepository, IModelMapper mapper, IRepository<Event> eventRepository)
 {
     _timelineRepository = timelineRepository;
     _eventRepository = eventRepository;
     _mapper = mapper;
 }
Ejemplo n.º 6
0
 public AllBooksQueryHandler(
     IDotNetCoreKatasDbContext dbContext,
     IModelMapper <BookDomainModel, BookReadModel> mapper)
     : base(dbContext, mapper)
 {
 }
 public HomeController(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
Ejemplo n.º 8
0
 public BooksController(IEntityRepository <BookEntity, BookFilter> repository, IModelMapper <BookEntity, Book> modelMapper, IPagingLinksFactory <BookFilter> pagingLinksFactory, IMemoryCache memoryCache) :
     base(repository, modelMapper, pagingLinksFactory, memoryCache, "Books")
 {
 }
Ejemplo n.º 9
0
 public AccountController(IRepository<Account> accountRepository, ITimelineRepository timelineRepository, IModelMapper mapper)
 {
     _accountRepository = accountRepository;
     _mapper = mapper;
     _timelineRepository = timelineRepository;
 }
Ejemplo n.º 10
0
 public ManufacturersController(IManufacturerService manufacturerService, IModelMapper modelMapper, IDataSerializer dataSerializer)
 {
     _manufacturerService = manufacturerService;
     _modelMapper         = modelMapper;
     _dataSerializer      = dataSerializer;
 }
Ejemplo n.º 11
0
 public PressReleaseController(IViewPathResolver viewPathResolver, IModelMapper modelMapper) : base(viewPathResolver, modelMapper)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 13
0
 public RoleService(ApplicationDbContext context, IModelMapper mapper) : base(context, mapper)
 {
 }
Ejemplo n.º 14
0
 public BaseService(ApplicationDbContext context,
                    IModelMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public IDraftApprenticeshipDetailsViewModelMapper(ICommitmentsApiClient commitmentsApiClient, IModelMapper modelMapper)
 {
     _commitmentsApiClient = commitmentsApiClient;
     _modelMapper          = modelMapper;
 }
Ejemplo n.º 16
0
        private DynamicMethodModelFactory CreateFactory(IModelMapper modelMapper)
        {
            DynamicMethodModelFactory factory = new DynamicMethodModelFactory(new DatabaseMapper(modelMapper));

            return(factory);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 public AccountService(UserManager <User> userManager, IOptions <AuthSettings> authSettings, IModelMapper mapper)
 {
     _userManager  = userManager;
     _authSettings = authSettings.Value;
     _mapper       = mapper;
 }
Ejemplo n.º 20
0
 public WarehouseController(IWarehouseService warehouseService, IWarehouseModelFactory warehouseModelFactory, IAddressService addressService, IModelMapper modelMapper, CatalogSettings catalogSettings)
 {
     _warehouseService      = warehouseService;
     _warehouseModelFactory = warehouseModelFactory;
     _addressService        = addressService;
     _modelMapper           = modelMapper;
     _catalogSettings       = catalogSettings;
 }
Ejemplo n.º 21
0
 public ApprenticeshipUpdateController(IMediator mediator, IModelMapper modelMapper)
 {
     _mediator    = mediator;
     _modelMapper = modelMapper;
 }
Ejemplo n.º 22
0
 public GdprModelFactory(IModelMapper modelMapper)
 {
     _modelMapper = modelMapper;
 }
Ejemplo n.º 23
0
 public EmployeeService(IEmployeeRepository repository, IModelMapper modelMapper) : base(repository, modelMapper)
 {
 }
Ejemplo n.º 24
0
 public BooksController(IModelService <IBook, BookFilter> modelService, IModelMapper <IBook, Book> modelMapper, IPagingLinksFactory <BookFilter> pagingLinksFactory)
     : base(modelService, modelMapper, pagingLinksFactory)
 {
 }
Ejemplo n.º 25
0
 public CategoryService(ApplicationDbContext context, IModelMapper mapper) : base(context, mapper)
 {
 }
Ejemplo n.º 26
0
 public ModelMapper()
 {
     modelMapper = (IModelMapper <T>)Activator.CreateInstance(typeof(T), new object[] { });
 }
Ejemplo n.º 27
0
 public EntitySearch(IContext context, IModelMapper <TModel> mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Ejemplo n.º 28
0
 public ModelMapper(HttpRequestMessage request)
 {
     modelMapper = (IModelMapper <T>)Activator.CreateInstance(typeof(T), new object[] { request });
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 30
0
 public HeadingController(IViewPathResolver viewPathResolver, IModelMapper modelMapper) : base(viewPathResolver, modelMapper)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 36
0
 public RegionService(IRegionRepository regionRepository, IModelMapper<Region, RegionModel> regionModelMapper)
 {
     _regionRepository = regionRepository;
     _regionModelMapper = regionModelMapper;
 }