コード例 #1
0
        internal FakeAdvancedApi(FakeBusEventRecorder recorder, FakeBusEventFactory factory, IRebusTime rebusTime)
        {
            _dataBus = new FakeDataBus(rebusTime);

            Workers          = new FakeWorkersApi(recorder, rebusTime);
            Topics           = new FakeTopicsApi(recorder, factory, rebusTime);
            SyncBus          = new FakeSyncBus(recorder, factory, rebusTime);
            Routing          = new FakeRoutingApi(recorder, factory, rebusTime);
            TransportMessage = new FakeTransportMessageApi(recorder, rebusTime);
        }
コード例 #2
0
 internal FakeTransportMessageApi(FakeBusEventRecorder recorder, IRebusTime rebusTime)
 {
     _recorder  = recorder;
     _rebusTime = rebusTime;
 }
コード例 #3
0
 internal FakeTopicsApi(FakeBusEventRecorder recorder, FakeBusEventFactory factory, IRebusTime rebusTime)
 {
     _recorder  = recorder;
     _factory   = factory;
     _rebusTime = rebusTime;
 }
コード例 #4
0
 /// <summary>
 /// Creates the fake sync bus with its own internal event recorder (may be used if only an <see cref="ISyncBus"/>
 /// implementation is needed for the test)
 /// </summary>
 public FakeSyncBus()
 {
     _recorder  = new FakeBusEventRecorder();
     _factory   = new FakeBusEventFactory();
     _rebusTime = new FakeRebusTime();
 }
コード例 #5
0
 internal FakeWorkersApi(FakeBusEventRecorder recorder, IRebusTime rebusTime)
 {
     _recorder  = recorder;
     _rebusTime = rebusTime;
 }