Ejemplo n.º 1
0
        public TabadminControllerEvent(string eventType,
                                       LogLine logLine,
                                       JavaLineMatchResult javaLineMatchResult,
                                       IBuildTracker buildTracker = null)
            : base(logLine, javaLineMatchResult.Timestamp)
        {
            EventType = eventType;

            Class     = javaLineMatchResult.Class;
            Message   = javaLineMatchResult.Message;
            ProcessId = javaLineMatchResult.ProcessId;
            Severity  = javaLineMatchResult.Severity;
            Thread    = javaLineMatchResult.Thread;

            Build = buildTracker?.GetBuild(javaLineMatchResult.Timestamp);
        }
Ejemplo n.º 2
0
        public void GetBuildTests(bool expectResult, DateTime dateTime)
        {
            var build = _buildTracker.GetBuild(dateTime);

            build.Should().Be(expectResult ? TestBuild : null);
            _processingNotificationsCollectorMock.VerifyNoOtherCalls();
        }