public AirportsService(IAirportsHttpService airportsHttpService, IAirportsRepository airportsRepository, IMapperFactory mapperFactory) { AirportsHttpService = airportsHttpService; AirportsRepository = airportsRepository; MapperFactory = mapperFactory; }
public RepositoryService(IDbService dbService, IMapperFactory mapperFactory, BlazorContext dbContext) { _mapper = mapperFactory.GetMapper("DAL"); _dbService = dbService; _dbContext = dbContext; _objectSet = GetObjectSet <T>(); }
public AdminController(IAdminManager adminManager, IWorkerManager workerManager, IMapperFactory mapperFactory) { _adminManager = adminManager; _workerManager = workerManager; _mapperFactory = mapperFactory; }
public GetAllClaimsApiRequestHandler( IMediator mediator, IMapperFactory mapperFactory) { this.mediator = mediator; this.mapperFactory = mapperFactory; }
public PlayedGameController( NemeStatsDataContext dataContext, IPlayedGameRetriever playedGameRetriever, IPlayerRetriever playerRetriever, IPlayedGameDetailsViewModelBuilder builder, IGameDefinitionRetriever gameDefinitionRetriever, IPlayedGameSaver playedGameSaver, IPlayedGameDeleter playedGameDeleter, IPlayerSaver playerSaver, IMapperFactory mapperFactory, ICreatePlayedGameComponent createPlayedGameComponent, ICreateGameDefinitionComponent createGameDefinitionComponent) { _dataContext = dataContext; _playedGameRetriever = playedGameRetriever; _playerRetriever = playerRetriever; _playedGameDetailsBuilder = builder; _gameDefinitionRetriever = gameDefinitionRetriever; _playedGameSaver = playedGameSaver; _playedGameDeleter = playedGameDeleter; _playerSaver = playerSaver; _mapperFactory = mapperFactory; _createPlayedGameComponent = createPlayedGameComponent; _createGameDefinitionComponent = createGameDefinitionComponent; }
protected virtual void SetUpFixture() { string resource = "SqlMap_StatementOnly.config"; string scriptDirectory = Path.Combine(Path.Combine(Path.Combine(Resources.ApplicationBase, ".."), ".."), "Scripts") + Path.DirectorySeparatorChar; try { IConfigurationEngine engine = new DefaultConfigurationEngine(); engine.RegisterInterpreter(new XmlConfigurationInterpreter(resource)); engine.RegisterModule(new AccountModule()); engine.RegisterModule(new DocumentModule()); IMapperFactory mapperFactory = engine.BuildMapperFactory(); Console.WriteLine(engine.ConfigurationStore.ToString()); dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; ISessionFactory sessionFactory = engine.ModelStore.SessionFactory; BaseTest.InitScript(sessionFactory.DataSource, scriptDirectory + "account-init.sql"); } catch (Exception ex) { Exception e = ex; while (e != null) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); e = e.InnerException; } throw; } }
public MappingBuilder( IMapperFactory mapperFactory, IMapperFactory <TInput> inputMapperFactory) { this.mapperFactory = mapperFactory; this.inputMapperFactory = inputMapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="PackageSender"/> class. /// </summary> /// <param name="manager">Transmitter module manager.</param> /// <param name="mapperFactory">The mapper factory.</param> public PackageSender(TransmitterManager manager, IMapperFactory mapperFactory) : base(manager) { this.XmlList = new List <ICommunicationPackage>(); this.mapperFactory = mapperFactory; this.Log = Manager.Updater.RegisterLog(Logging.CommunicationModuleLogger.CreateLog(), ServiceType.Sender); }
/// <summary> /// Initializes a new instance of the <see cref="PackageReceiver"/> class. /// </summary> /// <param name="manager">Transmitter module manager.</param> /// <param name="packageFactory">The communication package factory.</param> /// <param name="mapperFactory">The mappers factory.</param> public PackageReceiver(TransmitterManager manager, ICommunicationPackageFactory packageFactory, IMapperFactory mapperFactory) : base(manager) { this.Log = Manager.Updater.RegisterLog(Logging.CommunicationModuleLogger.CreateLog(), ServiceType.Receiver); this.packageFactory = packageFactory; this.mapperFactory = mapperFactory; }
public CarEngineCommandFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericWriteRepository writeRepository, IValidatorFactory validatorFactory, IGenericReadRepository readRepository, IEngineSupportsGearboxFiltersProvider engineGearboxFiltersProvider) : base(unitOfWork, mapperFactory, writeRepository, validatorFactory) { _readRepository = readRepository; _engineGearboxFiltersProvider = engineGearboxFiltersProvider; }
public CarBodyTypeQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository, ICarBodyTypeFiltersProvider bodyTypeFiltersProvider, IModelSupportsBodyTypeFiltersProvider modelBodyTypeFiltersProvider, IModelSupportsBodyTypeRelationsProvider relationsProvider) : base(unitOfWork, mapperFactory, readRepository, bodyTypeFiltersProvider) { _modelBodyTypeFiltersProvider = modelBodyTypeFiltersProvider; _relationsProvider = relationsProvider; }
public FaPiaoController(IMapperFactory mapperFactory, IFaPiaoService fapiaoService, IFinanceService financeService, IEmployeesService employeesService) { _mapperFactory = mapperFactory; _fapiaoService = fapiaoService; _financeService = financeService; _employeesService = employeesService; }
public CarComplectationQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository, ICarComplectationFiltersProvider complectationFiltersProvider, ICarComplectationOptionFiltersProvider complectationOptionFiltersProvider) : base(unitOfWork, mapperFactory, readRepository, complectationFiltersProvider) { _complectationFiltersProvider = complectationFiltersProvider; _complectationOptionFiltersProvider = complectationOptionFiltersProvider; }
public void SetUp() { _fakeContext = DbContextTest.CreateDbContext <EmployeeContext>(); _mapper = A.Fake <IMapper>(); _factory = new MapperFactory(_mapper); _repository = new EmployeeRepository(_fakeContext, _factory); }
/// <summary> /// Initializes a new instance of the <see cref="YoufferPaymentService"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="paymentRepository">The payment repository.</param> /// <param name="payPalDetailsRepository"> The PayPalDetails repository</param> /// <param name="mapperFactory">The mapper factory.</param> public YoufferPaymentService(ILoggerService loggerService, IRepository<LeadOpportunityMapping> paymentRepository, IRepository<PayPalDetails> payPalDetailsRepository, IMapperFactory mapperFactory) { this.LoggerService = loggerService; this.paymentRepository = paymentRepository; this.mapperFactory = mapperFactory; this.payPalDetailsRepository = payPalDetailsRepository; }
public GetClaimCostAttachmentByClaimCostAttachmentIdApiRequestHandler( IMediator mediator, IMapperFactory mapperFactory) { this.mediator = mediator; this.mapperFactory = mapperFactory; }
public static void Initialize(IMapperFactory factory) { foreach (var mapperProfile in factory.MapperProfiles) { mapperProfile.Register(); } }
public AdminService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService) { _unitOfWork = unitOfWork; _mapperFactory = mapperFactory; _repository = _unitOfWork.GetRepository <dynamic>(); _messageService = messageService; }
/// <summary> /// Initializes a new instance of the <see cref="UserProfileService"/> class. /// </summary> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="table">The table.</param> /// <param name="userManager">user manager instance.</param> public UserProfileService(IMapperFactory mapperFactory, IRepository <TblUserProfile> table, CustomUserManager userManager) : base(mapperFactory, table) { this.mapperFactory = mapperFactory; this.table = table; this.userManager = userManager; }
public SalsaRepository(ISalsaClient salsa, IMapperFactory mapperFactory, ISyncErrorHandler syncErrorHandler, ISyncObjectComparator objectComparator) { _salsa = salsa; _mapperFactory = mapperFactory; _syncErrorHandler = syncErrorHandler; _objectComparator = objectComparator; }
public ColorCodeQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository, IColorCodeFiltersProvider colorCodeFiltersProvider, IModelSupportsColorFiltersProvider modelColorFiltersProvider, IModelSupportsColorRelationsProvider modelColorRelationsProvider) : base(unitOfWork, mapperFactory, readRepository, colorCodeFiltersProvider) { _modelColorFiltersProvider = modelColorFiltersProvider; _modelColorRelationsProvider = modelColorRelationsProvider; }
/// <summary> /// Initializes a new instance of the <see cref="TestDataService" /> class. /// </summary> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="table">The table.</param> /// <param name="testDataSharedTestDataMapService">The testDataSharedTestDataMapService.</param> /// <param name="apiTestDataService">The apiTestDataService.</param> public TestDataService(IMapperFactory mapperFactory, IRepository <TblTestData> table, ITestDataSharedTestDataMapService testDataSharedTestDataMapService, IApiTestDataService apiTestDataService) : base(mapperFactory, table) { this.mapperFactory = mapperFactory; this.testDataSharedTestDataMapService = testDataSharedTestDataMapService; this.apiTestDataService = apiTestDataService; }
public FuelService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService) { _unitOfWork = unitOfWork; _mapperFactory = mapperFactory; _repository = _unitOfWork.GetRepository <FuelMaster>(); _messageService = messageService; }
public GameDataRepository(IFileStorageService fileStorageService, IMapperFactory mapperFactory, ISerializationService serializationService, IUserSettingsService userSettingsService) { _fileStorageService = fileStorageService; _mapperFactory = mapperFactory; _serializationService = serializationService; _userSettingsService = userSettingsService; }
/// <summary> /// Initializes a new instance of the <see cref="TestQueueExecutableService" /> class. /// </summary> /// <param name="table">The table test data.</param> /// <param name="suiteService">The suite service.</param> /// <param name="testQueueService">The test queue service.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="schedulerService">The scheduler service.</param> /// <param name="browserService">The browser service.</param> /// <param name="actionService">The action service.</param> /// <param name="testDataSharedTestDataMapService">The test data shared test data map service.</param> /// <param name="sharedTestDataService">The shared test data service.</param> /// <param name="apiConncetionService">The API conncetion service.</param> /// <param name="schedulerHistoryService">The scheduler history service.</param> /// <param name="environmentService">The environment service.</param> /// <param name="reportLinkDataService">The report data service.</param> public TestQueueExecutableService( IRepository <TblTestData> table, ISuiteService suiteService, ITestQueueService testQueueService, IMapperFactory mapperFactory, ISchedulerService schedulerService, IBrowserService browserService, IActionsService actionService, ITestDataSharedTestDataMapService testDataSharedTestDataMapService, ISharedTestDataService sharedTestDataService, IApiConnectionService apiConncetionService, ISchedulerHistoryService schedulerHistoryService, IEnvironmentService environmentService, IReportLinkDataService reportLinkDataService) { this.table = table; this.suiteService = suiteService; this.mapperFactory = mapperFactory; this.schedulerService = schedulerService; this.testQueueService = testQueueService; this.browserService = browserService; this.actionService = actionService; this.testDataSharedTestDataMapService = testDataSharedTestDataMapService; this.sharedTestDataService = sharedTestDataService; this.apiConncetionService = apiConncetionService; this.schedulerHistoryService = schedulerHistoryService; this.environmentService = environmentService; this.reportLinkDataService = reportLinkDataService; }
public GetClaimFlightByClaimIdApiRequestHandler( IMediator mediator, IMapperFactory mapperFactory) { this.mediator = mediator; this.mapperFactory = mapperFactory; }
public TransferForm(IRepositoryFactory repositoryFactory, IMapperFactory mapperFactory) { this.repositoryFactory = repositoryFactory; this.mapperFactory = mapperFactory; InitializeComponent(); }
public MyCustomerController(ICustomerService customerService, IEmployeesService employeesService, IPositionService positionService, IMapperFactory mapperFactory) { _customerService = customerService; _employeesService = employeesService; _positionService = positionService; _mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="YoufferContactService" /> class. /// </summary> /// <param name="loggerService"> The logger service. </param> /// <param name="contactLeadRepository"> The Contact Lead Repository. </param> /// <param name="mapperFactory"> The mapper factory. </param> /// <param name="appUser"> The ApplicationUser repository. </param> public YoufferContactService(ILoggerService loggerService, IRepository<ContactLeadMapping> contactLeadRepository, IMapperFactory mapperFactory, IRepository<ApplicationUser> appUser) { this.LoggerService = loggerService; this.contactLeadRepository = contactLeadRepository; this.mapperFactory = mapperFactory; this.appUser = appUser; }
/// <summary> /// Initializes a new instance of the <see cref="PushService" /> class. /// </summary> /// <param name="googleGcmApiKey"> The google api key</param> /// <param name="appleCertPwd"> The Api certificate password</param> /// <param name="outputPath">The output path</param> /// <param name="loggerService"> The logger service</param> /// <param name="mapperFactory">the mapper factory</param> /// <param name="notificationLogRepository">The notification log repository</param> public PushService(string googleGcmApiKey, string appleCertPwd, string outputPath, ILoggerService loggerService, IMapperFactory mapperFactory, IRepository<NotificationLog> notificationLogRepository) { this.loggerService = loggerService; this.mapperFactory = mapperFactory; this.notificationLogRepository = notificationLogRepository; this.pushBroker = new PushBroker(); try { this.pushBroker.RegisterGcmService(new GcmPushChannelSettings(googleGcmApiKey)); } catch (Exception ex) { this.loggerService.LogException("Register Android notification service" + ex.Message); } var appleCert = File.ReadAllBytes(outputPath); try { this.pushBroker.RegisterAppleService(new ApplePushChannelSettings(appleCert, appleCertPwd)); } catch (Exception ex) { this.loggerService.LogException("Register iOS notification service" + ex.Message); } }
public ApplicationTextService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService) { _unitOfWork = unitOfWork; _mapperFactory = mapperFactory; _repository = _unitOfWork.GetRepository <ApplicationText>(); _messageService = messageService; }
public WorkoutSessionExerciseController(IServiceFactory serviceFactory , IMapperFactory mapperFactory , IUserProvider userProvider , ISessionHandler sessionHandler) : base(serviceFactory, mapperFactory, userProvider, sessionHandler) { }
public OrderReviewController(IOrderReviewService orderReviewService, IAuditLevelService auditLevelService, IEmployeesService employeesService, IMapperFactory mapperFactory, IOrderService orderService) { _orderReviewService = orderReviewService; _auditLevelService = auditLevelService; _employeesService = employeesService; _orderService = orderService; _mapperFactory = mapperFactory; }
public BaseCrudServices(IQueryRepository <Entity> queryRepository, IUnitOfWork unitOfWork, IMapperFactory mapperFactory) { _type = typeof(Entity); _mapperFactory = mapperFactory; _queryRepo = (QueryRepository)queryRepository; _uow = (UoW)unitOfWork; SetCrudRepository(); }
public AccountController(IMapperFactory mapperFactory, IAccountCommandFunctionality accountCommandFunctionality, IAccountQueryFunctionality accountQueryFunctionality, ICookieAuthenticationManager authenticationManager, IUserQueryFunctionality userQueryFunctionality) : base(mapperFactory) { _accountCommandFunctionality = accountCommandFunctionality; _accountQueryFunctionality = accountQueryFunctionality; _authenticationManager = authenticationManager; _userQueryFunctionality = userQueryFunctionality; }
public ExerciseService(IRepositoryFactory repositoryFactory , IMapperFactory mapperFactory , IMuscleService muscleService , ICurrentUser user) : base(repositoryFactory, mapperFactory, user) { _muscleService = muscleService; }
public QuestionsSetService(IUnitOfWorkFactory pUnitOfWorkFactory, IMapperFactory pMapperFactory, IQuestionsSetImporterFactory pQuestionsSetImporterFactory) { this._unitOfWorkFactory = pUnitOfWorkFactory; this._mapper = pMapperFactory.GetMapper(); this._questionsSetImporterFactory = pQuestionsSetImporterFactory; }
public SampleController(ISampleService sampleService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IAuditLevelService auditLevelService) { _sampleService = sampleService; _mapperFactory = mapperFactory; _employeesService = employeesService; _positionService = positionService; _auditLevelService = auditLevelService; }
public UrlService( IUrlRepository urlRepository, IApplicationResourceFactory applicationResourceFactory, IMapperFactory mapperFactory) { _urlRepository = urlRepository; _mapperFactory = mapperFactory; _queue = applicationResourceFactory.GetQueue<SavedUrlQueueItem>(ComponentIdentity); }
/// <summary> /// Initializes a new instance of the <see cref="YoufferMessageService"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="messagesRepository">The messages repository.</param> /// <param name="messageThreadRepository">The message thread repository.</param> /// <param name="messageMediaRepository">The message media repository.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="contactUsRepository">The contact us repository.</param> public YoufferMessageService(ILoggerService loggerService, IRepository<Messages> messagesRepository, IRepository<MessageThread> messageThreadRepository, IRepository<MessageMedia> messageMediaRepository, IMapperFactory mapperFactory, IRepository<ContactUs> contactUsRepository) { this.LoggerService = loggerService; this.messageRepository = messagesRepository; this.messageThreadRepository = messageThreadRepository; this.messageMediaRepository = messageMediaRepository; this.mapperFactory = mapperFactory; this.contactUsRepository = contactUsRepository; }
/// <summary> /// Initializes a new instance of the <see cref="YoufferInterestService"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="mainInterestRepository">The main interest repository.</param> /// <param name="subInterestRepository">The sub interest repository.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="parentBusinessTypeRepository">The parent business repository.</param> /// <param name="businessTypeRepository">The business type repository.</param> public YoufferInterestService(ILoggerService loggerService, IRepository<MainInterest> mainInterestRepository, IRepository<SubInterest> subInterestRepository, IMapperFactory mapperFactory, IRepository<ParentBusinessType> parentBusinessTypeRepository, IRepository<BusinessType> businessTypeRepository) { this.LoggerService = loggerService; this.mainInterestRepository = mainInterestRepository; this.subInterestRepository = subInterestRepository; this.mapperFactory = mapperFactory; this.parentBusinessTypeRepository = parentBusinessTypeRepository; this.businessTypeRepository = businessTypeRepository; }
public PlayerDetailsViewModelBuilder( IGameResultViewModelBuilder builder, IMinionViewModelBuilder minionViewModelBuilder, IMapperFactory mapperFactory) { _gameResultViewModelBuilder = builder; _minionViewModelBuilder = minionViewModelBuilder; _mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentService"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="invoiceRepository">The invoice repository.</param> /// <param name="g2SRequestRepository">The g2 s request repository.</param> /// <param name="g2SResponseRepository">The g2 s response repository.</param> /// <param name="g2SDMNRepository">The g2 SDMN repository.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="paypalPayTransactionRepository">The Paypal transaction repository</param> /// <param name="paypalPayDetailsRepository">The Paypal details repository</param> public PaymentService(ILoggerService loggerService, IRepository<Invoice> invoiceRepository, IRepository<G2SRequest> g2SRequestRepository, IRepository<G2SResponse> g2SResponseRepository, IRepository<G2SDMN> g2SDMNRepository, IMapperFactory mapperFactory, IRepository<PaypalPayTransaction> paypalPayTransactionRepository, IRepository<PaypalPaymentDetails> paypalPayDetailsRepository) { this.LoggerService = loggerService; this.mapperFactory = mapperFactory; this.g2SDMNRepository = g2SDMNRepository; this.g2SRequestRepository = g2SRequestRepository; this.g2SResponseRepository = g2SResponseRepository; this.invoiceRepository = invoiceRepository; this.paypalPayTransactionRepository = paypalPayTransactionRepository; this.paypalPayDetailsRepository = paypalPayDetailsRepository; }
public AchievementController(IPlayerAchievementRetriever playerAchievementRetriever, IPlayerRetriever playerRetriever, IRecentPlayerAchievementsUnlockedRetreiver recentPlayerAchievementsUnlockedRetreiver, IMapperFactory mapperFactory ) { _playerAchievementRetriever = playerAchievementRetriever; _playerRetriever = playerRetriever; _recentPlayerAchievementsUnlockedRetreiver = recentPlayerAchievementsUnlockedRetreiver; _mapperFactory = mapperFactory; }
public UserTagService( ITagParser tagParser, IMapperFactory mapperFactory, IUrlRepository urlRepository, IUserTagRepository userTagRepository) { _tagParser = tagParser; _mapperFactory = mapperFactory; _urlRepository = urlRepository; _userTagRepository = userTagRepository; }
public OrderController(IAuditLevelService auditLevelService, IEnquiryService enquiryService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IOrderService orderService, IPayPeriodService payPeriodService, ICustomerService customerService) { _auditLevelService = auditLevelService; _enquiryService = enquiryService; _mapperFactory = mapperFactory; _employeesService = employeesService; _positionService = positionService; _orderService = orderService; _payPeriodService = payPeriodService; _customerService = customerService; }
public HomeController( IRecentPublicGamesRetriever recentPublicGamesRetriever, ITopGamingGroupsRetriever topGamingGroupsRetriever, ITrendingGamesRetriever trendingGamesRetriever, ITransformer transformer, IRecentPlayerAchievementsUnlockedRetreiver recentPlayerAchievementsUnlockedRetreiver, IMapperFactory mapperFactory, IDataContext dataContext) { _recentPublicGamesRetriever = recentPublicGamesRetriever; _topGamingGroupsRetriever = topGamingGroupsRetriever; _trendingGamesRetriever = trendingGamesRetriever; _transformer = transformer; _recentPlayerAchievementsUnlockedRetreiver = recentPlayerAchievementsUnlockedRetreiver; _mapperFactory = mapperFactory; }
public MyEnquiryController(IEnquiryService enquiryService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IProductService productService, ICustomerService customerService) { _enquiryService = enquiryService; _mapperFactory = mapperFactory; _employeesService = employeesService; _positionService = positionService; _productService = productService; _customerService = customerService; }
/// <summary> /// Initializes a new instance of the <see cref="IP2LocationService"/> class. /// </summary> /// <param name="userId">The user identifier.</param> /// <param name="licenseKey">The license key.</param> /// <param name="loggerService">The logger service.</param> /// <param name="mapperFactory">The mapper factory.</param> public IP2LocationService(int userId, string licenseKey, ILoggerService loggerService, IMapperFactory mapperFactory) { this.loggerService = loggerService; this.mapperFactory = mapperFactory; try { this.client = new WebServiceClient(userId, licenseKey); } catch (Exception ex) { this.loggerService.LogException(ex.Message); } }
/// <summary> /// Initializes a new instance of the <see cref="SmsService" /> class. /// </summary> /// <param name="authToken"> The plivo AuthToken. </param> /// <param name="accountSid"> The plivo Account Sid. </param> /// <param name="fromNumber"> the plivo from number. </param> /// <param name="loggerService"> The logger service</param> /// <param name="mapperFactory">the mapper factory</param> public SmsService(string authToken, string accountSid, string fromNumber, ILoggerService loggerService, IMapperFactory mapperFactory) { try { this.plivo = new RestAPI(accountSid, authToken); } catch (Exception ex) { this.loggerService.LogException(ex.Message); } this.fromNumber = fromNumber; this.loggerService = loggerService; this.mapperFactory = mapperFactory; }
static MapperFactoryProvider() { ClassMapperFactory = new ClassMapperFactory(); ClassToDictionaryMapperFactory = new ClassToDictionaryMapperFactory(); DictionaryToClassMapperFactory = new DictionaryToClassMapperFactory(); ListSourceMapperFactory = new ListSourceMapperFactory(); CollectionMapperFactory = new CollectionMapperFactory(); DataReaderMapperFactory = new DataReaderMapperFactory(); DataRowMapperFactory = new DataRowMapperFactory(); DataTableMapperFactory = new DataTableMapperFactory(); //EnumMapperFactory = new EnumMapperFactory(); //NullableMapperFactory = new NullableMapperFactory(); PrimitiveMapperFactory = new PrimitiveMapperFactory(); TypeConverterMapperFactory = new TypeConverterMapperFactory(); //StringMapperFactory = new StringMapperFactory(); //FlagsEnumMapperFactory = new FlagsEnumMapperFactory(); DictionaryMapperFactory = new DictionaryMapperFactory(); }
public PlayedGameController( NemeStatsDataContext dataContext, IPlayedGameRetriever playedGameRetriever, IPlayerRetriever playerRetriever, IPlayedGameDetailsViewModelBuilder builder, IGameDefinitionRetriever gameDefinitionRetriever, IPlayedGameSaver playedGameSaver, IPlayedGameDeleter playedGameDeleter, IGameDefinitionSaver gameDefinitionSaver, IPlayerSaver playerSaver, IMapperFactory mapperFactory) { _dataContext = dataContext; _playedGameRetriever = playedGameRetriever; _playerRetriever = playerRetriever; _playedGameDetailsBuilder = builder; _gameDefinitionRetriever = gameDefinitionRetriever; _playedGameSaver = playedGameSaver; _playedGameDeleter = playedGameDeleter; _gameDefinitionSaver = gameDefinitionSaver; _playerSaver = playerSaver; _mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="UserController" /> class. /// </summary> /// <param name="loggerService">The Logger service.</param> /// <param name="crmManagerService">The CRMManager service.</param> /// <param name="userService">The User service.</param> /// <param name="youfferContactService">The YoufferContact service.</param> /// <param name="commonService">The Common service.</param> /// <param name="youfferMessageService">The YoufferMessage service.</param> /// <param name="youfferFeedbackService">The youffer feedback service.</param> /// <param name="youfferPaymentService">The youffer payment service.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="vTigerService">the vtiger service. </param> /// <param name="pushMessageService">The push service.</param> /// <param name="ip2LocationService">The IP2Location service.</param> public UserController(ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, IYoufferContactService youfferContactService, ICommonService commonService, IYoufferMessageService youfferMessageService, IYoufferFeedbackService youfferFeedbackService, IYoufferPaymentService youfferPaymentService, IMapperFactory mapperFactory, IVTigerService vTigerService, IPushMessageService pushMessageService, IIP2LocationService ip2LocationService) : base(loggerService) { this.crmManagerService = crmManagerService; this.userService = userService; this.youfferContactService = youfferContactService; this.commonService = commonService; this.youfferMessageService = youfferMessageService; this.youfferFeedbackService = youfferFeedbackService; this.youfferPaymentService = youfferPaymentService; this.mapperFactory = mapperFactory; this.vTigerService = vTigerService; this.pushMessageService = pushMessageService; this.ip2LocationService = ip2LocationService; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentController" /> class. /// </summary> /// <param name="g2SService">The g2s service.</param> /// <param name="loggerService">The logger service.</param> /// <param name="crmManagerService">The CRM manager service.</param> /// <param name="userService">The user service.</param> /// <param name="commonService">The common service.</param> /// <param name="youfferContactService">The youffer contact service.</param> /// <param name="paymentService">The youffer payment service</param> /// <param name="mapperFactory">The Mapper Factory</param> public PaymentController(IG2SService g2SService, ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, ICommonService commonService, IYoufferContactService youfferContactService, IPaymentService paymentService, IMapperFactory mapperFactory) : base(loggerService) { this.g2SService = g2SService; this.mapperFactory = mapperFactory; this.youfferContactService = youfferContactService; this.userService = userService; this.commonService = commonService; this.crmManagerService = crmManagerService; this.paymentService = paymentService; }
/// <summary> /// Initializes a new instance of the <see cref="AuthRepository" /> class. /// </summary> /// <param name="client">The client.</param> /// <param name="emailQueueService">The email queue service.</param> /// <param name="refreshToken">The refresh token.</param> /// <param name="userManager">The user manager.</param> /// <param name="roles">The roles.</param> /// <param name="mapperFactory">The mapper factory.</param> /// <param name="crmManagerService">The CRMManager service.</param> /// <param name="commonService"> the commonService</param> public AuthRepository( IRepository<AuthClients> client, IEmailQueueService emailQueueService, IRepository<RefreshAuthTokens> refreshToken, UserManager<ApplicationUser> userManager, IRepository<IdentityRole> roles, IMapperFactory mapperFactory, ICRMManagerService crmManagerService, ICommonService commonService) { this.client = client; this.refreshToken = refreshToken; this.userManager = userManager; this.roles = roles; this.emailQueueService = emailQueueService; this.mapperFactory = mapperFactory; this.crmManagerService = crmManagerService; this.commonService = commonService; userManager.UserValidator = new UserValidator<ApplicationUser>(userManager) { AllowOnlyAlphanumericUserNames = false }; userManager.EmailService = new EmailService(); }
/// <summary> /// Initializes a new instance of the <see cref="YoufferLeadService" /> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="leadOpportunityRepository">The Lead Opportunity Repository.</param> /// <param name="mapperFactory">The Mapper factory.</param> public YoufferLeadService(ILoggerService loggerService, IRepository<LeadOpportunityMapping> leadOpportunityRepository, IMapperFactory mapperFactory) { this.LoggerService = loggerService; this.leadOpportunityRepository = leadOpportunityRepository; this.mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="YoufferFeedbackService"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="userFeedbackRepository">The user feedback repository.</param> /// <param name="mapperFactory">The mapper factory.</param> public YoufferFeedbackService(ILoggerService loggerService, IRepository<Feedback> userFeedbackRepository, IMapperFactory mapperFactory) { this.LoggerService = loggerService; this.userFeedbackRepository = userFeedbackRepository; this.mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="UserService" /> class. /// </summary> /// <param name="userRepository"> The User Repository. </param> /// <param name="loggerService"> The Logger Service. </param> /// <param name="mapperFactory">The mapper factory.</param> public UserService(IRepository<ApplicationUser> userRepository, ILoggerService loggerService, IMapperFactory mapperFactory) { this.userRepository = userRepository; this.LoggerService = loggerService; this.mapperFactory = mapperFactory; }
public EnquirySettingController(IEnquiryService enquiryService, IMapperFactory mapperFactory) { _enquiryService = enquiryService; _mapperFactory = mapperFactory; }
/// <summary> /// Initializes a new instance of the <see cref="CompanyController"/> class. /// </summary> /// <param name="loggerService">The logger service.</param> /// <param name="crmManagerService">The CRM manager service.</param> /// <param name="userService">The user service.</param> /// <param name="noteService">The note service.</param> /// <param name="commonService">The common service.</param> /// <param name="youfferMessageService">The youffer message service.</param> /// <param name="oppService">The opp service.</param> /// <param name="youfferContactService">The youffer contact service.</param> /// <param name="youfferLeadService">The youffer lead service.</param> /// <param name="youfferFeedbackService">The youffer feedback service.</param> /// <param name="mapperFactory">The Mapper Factory</param> /// <param name="youfferNoteService">The youffer note service.</param> /// <param name="youfferInterestService"> The youffer interest service </param> /// <param name="pushMessageService">The push message service</param> public CompanyController(ILoggerService loggerService, ICRMManagerService crmManagerService, IUserService userService, INoteService noteService, ICommonService commonService, IYoufferMessageService youfferMessageService, IOpportunityService oppService, IYoufferContactService youfferContactService, IYoufferLeadService youfferLeadService, IYoufferFeedbackService youfferFeedbackService, IMapperFactory mapperFactory, IYoufferNoteService youfferNoteService, IYoufferInterestService youfferInterestService, IPushMessageService pushMessageService) : base(loggerService) { this.mapperFactory = mapperFactory; this.crmManagerService = crmManagerService; this.userService = userService; this.noteService = noteService; this.commonService = commonService; this.youfferMessageService = youfferMessageService; this.oppService = oppService; this.youfferContactService = youfferContactService; this.youfferLeadService = youfferLeadService; this.youfferFeedbackService = youfferFeedbackService; this.youfferNoteService = youfferNoteService; this.youfferInterestService = youfferInterestService; this.pushMessageService = pushMessageService; }