Esempio n. 1
0
 public CampaignService(ICampaignRepository campaignRepository, IBuyerRepository buyerRepository, IProductRepository productRepository, IMatchingService matchingService)
 {
     this.campaignRepository = campaignRepository;
     this.buyerRepository = buyerRepository;
     this.productRepository = productRepository;
     this.matchingService = matchingService;
 }
Esempio n. 2
0
 public TransactionService(ITransactionStore transactionStore, IMatchingService matchingService, IUserService userService, INotificationService notificationService)
 {
     _transactionStore    = transactionStore;
     _matchingService     = matchingService;
     _userService         = userService;
     _notificationService = notificationService;
 }
Esempio n. 3
0
 public ExternalController(IAgencyService agencyService, IProductRepository productRepository, IExternalService externalService, IMatchingService matchingService, IMetaProductRepository metaProductRepository)
 {
     this.agencyService = agencyService;
     this.productRepository = productRepository;
     this.externalService = externalService;
     this.matchingService = matchingService;
     this.metaProductRepository = metaProductRepository;
 }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MatchingServiceTests"/> class.
        /// </summary>
        public MatchingServiceTests()
        {
            this.botAdapter = new TestAdapter(Channels.Msteams)
            {
                Conversation =
                {
                    Conversation         = new ConversationAccount
                    {
                        ConversationType = "channel",
                    },
                },
            };
            var telemetryClient = new TelemetryClient();

            this.conversationHelper = new Mock <ConversationHelper>(MockBehavior.Loose, new MicrosoftAppCredentials(string.Empty, string.Empty), telemetryClient);
            this.conversationHelper.Setup(x => x.GetTeamNameByIdAsync(this.botAdapter, It.IsAny <TeamInstallInfo>()))
            .Returns(() => Task.FromResult("IceBreakerTeam"));

            this.dataProvider = new Mock <IBotDataProvider>();
            this.dataProvider.Setup(x => x.GetInstalledTeamAsync(It.IsAny <string>()))
            .Returns(() => Task.FromResult(new TeamInstallInfo()));
            this.sut = new MatchingService(this.dataProvider.Object, this.conversationHelper.Object, telemetryClient, this.botAdapter);
        }
Esempio n. 5
0
 public JobMatchingManager(IMatchingService matchingService, ICandidateRepository candidateRepository, IJobRepository jobRepository)
 {
     this.matchingService     = matchingService ?? throw new ArgumentNullException(nameof(matchingService));
     this.candidateRepository = candidateRepository ?? throw new ArgumentNullException(nameof(candidateRepository));
     this.jobRepository       = jobRepository;
 }
 public MatchingController(IMatchingService service)
 {
     _service = service;
 }
Esempio n. 7
0
 public MatchingServiceTests()
 {
     service = new MatchingService();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessNowController"/> class.
 /// </summary>
 /// <param name="matchingService">Matching service contains logic to pair and match users</param>
 /// <param name="botCredentials">The bot AAD credentials</param>
 /// <param name="secretsHelper">Secrets helper to fetch secrets</param>
 public ProcessNowController(IMatchingService matchingService, MicrosoftAppCredentials botCredentials, ISecretsHelper secretsHelper)
 {
     this.matchingService = matchingService;
     this.botCredentials  = botCredentials;
     this.apiKey          = secretsHelper.Key;
 }