public MockStopwatch(string tag, TimeSpan elapsed, TimeLineProvider timelineProvider, ConcurrentQueue <IAsyncTimedEvent> timeline)
 {
     Tag = tag;
     _timelineProvider = timelineProvider;
     _timeline         = timeline;
     Elapsed           = elapsed;
 }
示例#2
0
        internal AwaitableBuilder(TimeLineProvider timelineProvider, ConcurrentQueue <IAsyncTimedEvent> timeline, Func <T> result)
        {
            _timelineProvider = timelineProvider;
            _timeline         = timeline;
            _task             = async() =>
            {
                await Task.Yield();

                return(result());
            };
        }
示例#3
0
 public AsyncTimedEvent(string tag, TimeLineProvider timeline)
 {
     Tag       = tag;
     _timeline = timeline;
 }