Exemplo n.º 1
0
        public DiscoveryTestBuilder WithPeerMessageCorrelationManager(IPeerMessageCorrelationManager peerMessageCorrelationManager = default,
                                                                      IReputationManager reputationManager     = default,
                                                                      IMemoryCache memoryCache                 = default,
                                                                      IChangeTokenProvider changeTokenProvider = default)
        {
            _peerCorrelationManager = peerMessageCorrelationManager ??
                                      DiscoveryHelper.MockCorrelationManager(_scheduler, reputationManager, memoryCache, changeTokenProvider,
                                                                             _logger);

            return(this);
        }