Example #1
0
        public DiscoveryTestBuilder WithPeerRepository(IPeerRepository peerRepository = default, bool mock = false)
        {
            _peerRepository = peerRepository == default(IPeerRepository) && mock == false
                ? Substitute.For <IPeerRepository>()
                : peerRepository == null
                    ? _peerRepository = DiscoveryHelper.MockPeerRepository()
                    : _peerRepository = peerRepository;

            return(this);
        }