public CountingReportMetadata(string expectedSource, string actualSource, TestOperationResultType testOperationResultType, TestReportType testReportType)
 {
     this.ExpectedSource          = Preconditions.CheckNonWhiteSpace(expectedSource, nameof(expectedSource));
     this.ActualSource            = Preconditions.CheckNonWhiteSpace(actualSource, nameof(actualSource));
     this.TestOperationResultType = testOperationResultType;
     this.TestReportType          = testReportType;
 }
 public CountingReportMetadata(string expectedSource, string actualSource, TestOperationResultType testOperationResultType, TestReportType testReportType)
 {
     this.ExpectedSource          = expectedSource;
     this.ActualSource            = actualSource;
     this.TestOperationResultType = testOperationResultType;
     this.TestReportType          = testReportType;
 }
示例#3
0
 internal SimpleReportGenerator(
     string trackingId,
     string source,
     ITestResultCollection <TestOperationResult> testResults,
     TestOperationResultType testOperationResultType)
 {
     this.trackingId  = Preconditions.CheckNonWhiteSpace(trackingId, nameof(trackingId));
     this.Source      = Preconditions.CheckNonWhiteSpace(source, nameof(source));
     this.TestResults = Preconditions.CheckNotNull(testResults, nameof(testResults));
     this.ResultType  = testOperationResultType.ToString();
 }
 public DirectMethodTestResult(
     string source,
     DateTime createdAt,
     string trackingId,
     Guid batchId,
     string sequenceNumber,
     HttpStatusCode result,
     TestOperationResultType testOperationResultType = TestOperationResultType.DirectMethod)
     : base(source, testOperationResultType, createdAt)
 {
     this.TrackingId     = trackingId ?? string.Empty;
     this.BatchId        = Preconditions.CheckNotNull(batchId, nameof(batchId)).ToString();
     this.SequenceNumber = Preconditions.CheckNonWhiteSpace(sequenceNumber, nameof(sequenceNumber));
     this.HttpStatusCode = result;
 }
示例#5
0
 public CountingReportMetadata(
     string testDescription,
     string expectedSource,
     string actualSource,
     TestOperationResultType testOperationResultType,
     TestReportType testReportType,
     bool longHaulEventHubMode)
     : base(testDescription)
 {
     this.ExpectedSource          = Preconditions.CheckNonWhiteSpace(expectedSource, nameof(expectedSource));
     this.ActualSource            = Preconditions.CheckNonWhiteSpace(actualSource, nameof(actualSource));
     this.TestOperationResultType = testOperationResultType;
     this.TestReportType          = testReportType;
     this.LongHaulEventHubMode    = longHaulEventHubMode;
 }
示例#6
0
 public TestResultBase(string source, TestOperationResultType resultType, DateTime createdAt)
 {
     this.Source     = Preconditions.CheckNonWhiteSpace(source, nameof(source));
     this.ResultType = resultType;
     this.CreatedAt  = createdAt;
 }
示例#7
0
 public MessageTestResult(string source, DateTime createdAt, TestOperationResultType testOperationResultType = TestOperationResultType.Messages)
     : base(source, testOperationResultType, createdAt)
 {
 }