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); }
public void GetBuildTests(bool expectResult, DateTime dateTime) { var build = _buildTracker.GetBuild(dateTime); build.Should().Be(expectResult ? TestBuild : null); _processingNotificationsCollectorMock.VerifyNoOtherCalls(); }