コード例 #1
0
 public AirportsService(IAirportsHttpService airportsHttpService, IAirportsRepository airportsRepository,
                        IMapperFactory mapperFactory)
 {
     AirportsHttpService = airportsHttpService;
     AirportsRepository  = airportsRepository;
     MapperFactory       = mapperFactory;
 }
コード例 #2
0
 public RepositoryService(IDbService dbService, IMapperFactory mapperFactory, BlazorContext dbContext)
 {
     _mapper    = mapperFactory.GetMapper("DAL");
     _dbService = dbService;
     _dbContext = dbContext;
     _objectSet = GetObjectSet <T>();
 }
コード例 #3
0
 public AdminController(IAdminManager adminManager, IWorkerManager workerManager,
                        IMapperFactory mapperFactory)
 {
     _adminManager  = adminManager;
     _workerManager = workerManager;
     _mapperFactory = mapperFactory;
 }
コード例 #4
0
 public GetAllClaimsApiRequestHandler(
     IMediator mediator,
     IMapperFactory mapperFactory)
 {
     this.mediator      = mediator;
     this.mapperFactory = mapperFactory;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
        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;
            }
        }
コード例 #7
0
 public MappingBuilder(
     IMapperFactory mapperFactory,
     IMapperFactory <TInput> inputMapperFactory)
 {
     this.mapperFactory      = mapperFactory;
     this.inputMapperFactory = inputMapperFactory;
 }
コード例 #8
0
 /// <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);
 }
コード例 #9
0
 /// <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;
 }
コード例 #10
0
 public CarEngineCommandFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericWriteRepository writeRepository,
                                      IValidatorFactory validatorFactory, IGenericReadRepository readRepository, IEngineSupportsGearboxFiltersProvider engineGearboxFiltersProvider)
     : base(unitOfWork, mapperFactory, writeRepository, validatorFactory)
 {
     _readRepository = readRepository;
     _engineGearboxFiltersProvider = engineGearboxFiltersProvider;
 }
コード例 #11
0
 public CarBodyTypeQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository,
                                      ICarBodyTypeFiltersProvider bodyTypeFiltersProvider, IModelSupportsBodyTypeFiltersProvider modelBodyTypeFiltersProvider,
                                      IModelSupportsBodyTypeRelationsProvider relationsProvider) : base(unitOfWork, mapperFactory, readRepository, bodyTypeFiltersProvider)
 {
     _modelBodyTypeFiltersProvider = modelBodyTypeFiltersProvider;
     _relationsProvider            = relationsProvider;
 }
コード例 #12
0
 public FaPiaoController(IMapperFactory mapperFactory, IFaPiaoService fapiaoService, IFinanceService financeService, IEmployeesService employeesService)
 {
     _mapperFactory = mapperFactory;
     _fapiaoService = fapiaoService;
     _financeService = financeService;
     _employeesService = employeesService;
 }
コード例 #13
0
 public CarComplectationQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository,
                                           ICarComplectationFiltersProvider complectationFiltersProvider, ICarComplectationOptionFiltersProvider complectationOptionFiltersProvider)
     : base(unitOfWork, mapperFactory, readRepository, complectationFiltersProvider)
 {
     _complectationFiltersProvider       = complectationFiltersProvider;
     _complectationOptionFiltersProvider = complectationOptionFiltersProvider;
 }
コード例 #14
0
 public void SetUp()
 {
     _fakeContext = DbContextTest.CreateDbContext <EmployeeContext>();
     _mapper      = A.Fake <IMapper>();
     _factory     = new MapperFactory(_mapper);
     _repository  = new EmployeeRepository(_fakeContext, _factory);
 }
コード例 #15
0
 /// <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;
 }
コード例 #17
0
 public static void Initialize(IMapperFactory factory)
 {
     foreach (var mapperProfile in factory.MapperProfiles)
     {
         mapperProfile.Register();
     }
 }
コード例 #18
0
ファイル: AdminService.cs プロジェクト: juhirami102/CRUD
 public AdminService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService)
 {
     _unitOfWork     = unitOfWork;
     _mapperFactory  = mapperFactory;
     _repository     = _unitOfWork.GetRepository <dynamic>();
     _messageService = messageService;
 }
コード例 #19
0
 /// <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;
 }
コード例 #20
0
ファイル: SalsaRepository.cs プロジェクト: peterzhao/aft
 public SalsaRepository(ISalsaClient salsa, IMapperFactory mapperFactory, ISyncErrorHandler syncErrorHandler, ISyncObjectComparator objectComparator)
 {
     _salsa = salsa;
     _mapperFactory = mapperFactory;
     _syncErrorHandler = syncErrorHandler;
     _objectComparator = objectComparator;
 }
コード例 #21
0
 public ColorCodeQueryFunctionality(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IGenericReadRepository readRepository,
                                    IColorCodeFiltersProvider colorCodeFiltersProvider, IModelSupportsColorFiltersProvider modelColorFiltersProvider,
                                    IModelSupportsColorRelationsProvider modelColorRelationsProvider) : base(unitOfWork, mapperFactory, readRepository, colorCodeFiltersProvider)
 {
     _modelColorFiltersProvider   = modelColorFiltersProvider;
     _modelColorRelationsProvider = modelColorRelationsProvider;
 }
コード例 #22
0
 /// <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;
 }
コード例 #23
0
 public FuelService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService)
 {
     _unitOfWork     = unitOfWork;
     _mapperFactory  = mapperFactory;
     _repository     = _unitOfWork.GetRepository <FuelMaster>();
     _messageService = messageService;
 }
コード例 #24
0
 public GameDataRepository(IFileStorageService fileStorageService, IMapperFactory mapperFactory, ISerializationService serializationService, IUserSettingsService userSettingsService)
 {
     _fileStorageService   = fileStorageService;
     _mapperFactory        = mapperFactory;
     _serializationService = serializationService;
     _userSettingsService  = userSettingsService;
 }
コード例 #25
0
 /// <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;
 }
コード例 #26
0
 public GetClaimFlightByClaimIdApiRequestHandler(
     IMediator mediator,
     IMapperFactory mapperFactory)
 {
     this.mediator      = mediator;
     this.mapperFactory = mapperFactory;
 }
コード例 #27
0
 public TransferForm(IRepositoryFactory repositoryFactory,
                     IMapperFactory mapperFactory)
 {
     this.repositoryFactory = repositoryFactory;
     this.mapperFactory     = mapperFactory;
     InitializeComponent();
 }
コード例 #28
0
 public MyCustomerController(ICustomerService customerService, IEmployeesService employeesService, IPositionService positionService, IMapperFactory mapperFactory)
 {
     _customerService = customerService;
     _employeesService = employeesService;
     _positionService = positionService;
     _mapperFactory = mapperFactory;
 }
コード例 #29
0
 /// <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;
 }
コード例 #30
0
ファイル: PushService.cs プロジェクト: fishonline/API-1
        /// <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);
            }
        }
コード例 #31
0
 public ApplicationTextService(IUnitOfWork unitOfWork, IMapperFactory mapperFactory, IResourceService messageService)
 {
     _unitOfWork     = unitOfWork;
     _mapperFactory  = mapperFactory;
     _repository     = _unitOfWork.GetRepository <ApplicationText>();
     _messageService = messageService;
 }
コード例 #32
0
 public WorkoutSessionExerciseController(IServiceFactory serviceFactory
                                         , IMapperFactory mapperFactory
                                         , IUserProvider userProvider
                                         , ISessionHandler sessionHandler)
     : base(serviceFactory, mapperFactory, userProvider, sessionHandler)
 {
 }
コード例 #33
0
 public OrderReviewController(IOrderReviewService orderReviewService, IAuditLevelService auditLevelService, IEmployeesService employeesService, IMapperFactory mapperFactory, IOrderService orderService)
 {
     _orderReviewService = orderReviewService;
     _auditLevelService = auditLevelService;
     _employeesService = employeesService;
     _orderService = orderService;
     _mapperFactory = mapperFactory;
 }
コード例 #34
0
 public BaseCrudServices(IQueryRepository <Entity> queryRepository, IUnitOfWork unitOfWork, IMapperFactory mapperFactory)
 {
     _type          = typeof(Entity);
     _mapperFactory = mapperFactory;
     _queryRepo     = (QueryRepository)queryRepository;
     _uow           = (UoW)unitOfWork;
     SetCrudRepository();
 }
コード例 #35
0
 public AccountController(IMapperFactory mapperFactory, IAccountCommandFunctionality accountCommandFunctionality,
                          IAccountQueryFunctionality accountQueryFunctionality, ICookieAuthenticationManager authenticationManager, IUserQueryFunctionality userQueryFunctionality) : base(mapperFactory)
 {
     _accountCommandFunctionality = accountCommandFunctionality;
     _accountQueryFunctionality   = accountQueryFunctionality;
     _authenticationManager       = authenticationManager;
     _userQueryFunctionality      = userQueryFunctionality;
 }
コード例 #36
0
 public ExerciseService(IRepositoryFactory repositoryFactory
                        , IMapperFactory mapperFactory
                        , IMuscleService muscleService
                        , ICurrentUser user)
     : base(repositoryFactory, mapperFactory, user)
 {
     _muscleService = muscleService;
 }
コード例 #37
0
 public QuestionsSetService(IUnitOfWorkFactory pUnitOfWorkFactory,
                            IMapperFactory pMapperFactory,
                            IQuestionsSetImporterFactory pQuestionsSetImporterFactory)
 {
     this._unitOfWorkFactory           = pUnitOfWorkFactory;
     this._mapper                      = pMapperFactory.GetMapper();
     this._questionsSetImporterFactory = pQuestionsSetImporterFactory;
 }
コード例 #38
0
 public SampleController(ISampleService sampleService, IMapperFactory mapperFactory, IEmployeesService employeesService, IPositionService positionService, IAuditLevelService auditLevelService)
 {
     _sampleService = sampleService;
     _mapperFactory = mapperFactory;
     _employeesService = employeesService;
     _positionService = positionService;
     _auditLevelService = auditLevelService;
 }
コード例 #39
0
 public UrlService(
     IUrlRepository urlRepository,
     IApplicationResourceFactory applicationResourceFactory,
     IMapperFactory mapperFactory)
 {
     _urlRepository = urlRepository;
     _mapperFactory = mapperFactory;
     _queue = applicationResourceFactory.GetQueue<SavedUrlQueueItem>(ComponentIdentity);
 }
コード例 #40
0
 /// <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;
 }
コード例 #41
0
 /// <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;
 }
コード例 #42
0
 public PlayerDetailsViewModelBuilder(
     IGameResultViewModelBuilder builder,
     IMinionViewModelBuilder minionViewModelBuilder, 
     IMapperFactory mapperFactory)
 {
     _gameResultViewModelBuilder = builder;
     _minionViewModelBuilder = minionViewModelBuilder;
     _mapperFactory = mapperFactory;
 }
コード例 #43
0
ファイル: PaymentService.cs プロジェクト: fishonline/API-1
 /// <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;
 }
コード例 #44
0
 public AchievementController(IPlayerAchievementRetriever playerAchievementRetriever,
     IPlayerRetriever playerRetriever,
     IRecentPlayerAchievementsUnlockedRetreiver recentPlayerAchievementsUnlockedRetreiver,
     IMapperFactory mapperFactory
     )
 {
     _playerAchievementRetriever = playerAchievementRetriever;
     _playerRetriever = playerRetriever;
     _recentPlayerAchievementsUnlockedRetreiver = recentPlayerAchievementsUnlockedRetreiver;
     _mapperFactory = mapperFactory;
 }
コード例 #45
0
 public UserTagService(
     ITagParser tagParser,
     IMapperFactory mapperFactory,
     IUrlRepository urlRepository,
     IUserTagRepository userTagRepository)
 {
     _tagParser = tagParser;
     _mapperFactory = mapperFactory;
     _urlRepository = urlRepository;
     _userTagRepository = userTagRepository;
 }
コード例 #46
0
 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;
 }
コード例 #47
0
ファイル: HomeController.cs プロジェクト: NemeStats/NemeStats
 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;
     }
コード例 #48
0
 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;
 }
コード例 #49
0
        /// <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);
            }
        }
コード例 #50
0
ファイル: SmsService.cs プロジェクト: fishonline/API-1
        /// <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;
        }
コード例 #51
0
        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();
        }
コード例 #52
0
 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;
 }
コード例 #53
0
ファイル: UserController.cs プロジェクト: fishonline/API-1
 /// <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;
 }
コード例 #54
0
ファイル: PaymentController.cs プロジェクト: fishonline/API-1
 /// <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;
 }
コード例 #55
0
ファイル: AuthRepository.cs プロジェクト: fishonline/API-1
 /// <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();
 }
コード例 #56
0
 /// <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;
 }
コード例 #57
0
 /// <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;
 }
コード例 #58
0
ファイル: UserService.cs プロジェクト: fishonline/API-1
 /// <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;
 }
コード例 #59
0
 public EnquirySettingController(IEnquiryService enquiryService, IMapperFactory mapperFactory)
 {
     _enquiryService = enquiryService;
     _mapperFactory = mapperFactory;
 }
コード例 #60
0
ファイル: CompanyController.cs プロジェクト: fishonline/API-1
 /// <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;
 }