/// <summary> /// Constructs a DataCollectionContext indicating that there is a session and an executing test, /// but no test step, in context. /// </summary> /// <param name="sessionId">The session under which the data collection occurs. Cannot be null.</param> /// <param name="testExecId">The test execution under which the data collection occurs, /// or null if no executing test case is in context</param> protected internal DataCollectionContext(SessionId sessionId, TestExecId testExecId) { //todo //EqtAssert.ParameterNotNull(sessionId, "sessionId"); this.sessionId = sessionId; this.testExecId = testExecId; this.hashCode = ComputeHashCode(); }
public override bool Equals(object obj) { TestExecId id = obj as TestExecId; if (id == null) { return(false); } return(execId.Equals(id.execId)); }
/// <summary> /// Initializes for sending a test case level custom notification /// </summary> /// <param name="testExecId">ID of the test case to send the event against.</param> protected CustomNotificationEventArgs(TestExecId testExecId) : base(new DataCollectionContext(SessionId.Empty, testExecId)) { }