コード例 #1
0
        public DeltaHeightRequestObserverTests()
        {
            _testScheduler = new TestScheduler();
            _subbedLogger  = Substitute.For <ILogger>();
            var peerSettings = PeerIdHelper.GetPeerId("sender").ToSubstitutedPeerSettings();

            _deltaHeightRequestObserver = new DeltaHeightRequestObserver(peerSettings,
                                                                         _subbedLogger
                                                                         );
        }
コード例 #2
0
        public DeltaHeightRequestObserverTests()
        {
            _testScheduler = new TestScheduler();
            _subbedLogger  = Substitute.For <ILogger>();
            var peerSettings = PeerIdHelper.GetPeerId("sender").ToSubstitutedPeerSettings();

            _deltaHeightRequestObserver = new DeltaHeightRequestObserver(peerSettings,
                                                                         Substitute.For <IDeltaIndexService>(), new TestMapperProvider(), new Abstractions.Sync.SyncState()
            {
                IsSynchronized = true
            },
                                                                         _subbedLogger
                                                                         );
        }