public TestableJobStatusReportingHelper(VstsMessage vstsMessage, ILogger traceLogger, ITaskClient mockTaskHttpClient, IReleaseClient releaseClient, MockBuildClient mockBuildClient, string timeLineRecordName = null) : base(vstsMessage, traceLogger, timeLineRecordName) { this.mockTaskHttpClient = mockTaskHttpClient; this.releaseClient = releaseClient; this.mockBuildClient = mockBuildClient; }
internal static MockBuildClient ReturnMockBuildClientIfUrlValid(Uri uri, VstsMessage vstsMessage, MockBuildClient mockBuildClient) { Assert.IsNotNull(uri, "require uri to validate correct one is used"); Assert.AreNotEqual(vstsMessage.VstsUri, vstsMessage.VstsPlanUri, "need to be different to ensure we can test correct one is used"); Assert.AreEqual(vstsMessage.VstsUri, uri, "wrong url passed to create bulid client"); return(mockBuildClient); }
protected override IJobStatusReportingHelper GetVstsJobStatusReportingHelper(VstsMessage vstsMessage, ILogger inst) { return(this.jobStatusReportingHelper); }