示例#1
0
        public AvailabilityTestInfo CreateAvailabilityTestInfo()
        {
            AvailabilityTelemetry defaultAvailabilityResult = CreateDefaultAvailabilityResult();
            var testInfo = new AvailabilityTestInfo(TestDisplayName, _startTime, defaultAvailabilityResult);

            return(testInfo);
        }
        internal void CopyFrom(AvailabilityTestInfo availabilityTestInfo)
        {
            Validate.NotNull(availabilityTestInfo, nameof(availabilityTestInfo));

            Validate.NotNullOrWhitespace(availabilityTestInfo.TestDisplayName, "availabilityTestInfo.TestDisplayName");
            Validate.NotNull(availabilityTestInfo.DefaultAvailabilityResult, "availabilityTestInfo.DefaultAvailabilityResult");

            this.TestDisplayName           = availabilityTestInfo.TestDisplayName;
            this.StartTime                 = availabilityTestInfo.StartTime;
            this.DefaultAvailabilityResult = availabilityTestInfo.DefaultAvailabilityResult;
        }