public static EndpointHealthStats FromDomain(EndpointStats stats) { return(new EndpointHealthStats { Status = stats.Status, CheckTimeUtc = stats.CheckTimeUtc, ResponseTime = stats.ResponseTime }); }
private void AssertStats(EndpointStats expected, EndpointHealthStats actual) { Assert.Equal(expected.Status, actual.Status); Assert.Equal(expected.CheckTimeUtc, actual.CheckTimeUtc); Assert.Equal(expected.ResponseTime, actual.ResponseTime); }