private MetricEntity[] SampleMetrics() { return(new [] { Builders.Metric().WithKind("Success").WithFeatureName("Feature1").WithDateTime(DateTime.Now.AddHours(-5)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature1").WithDateTime(DateTime.Now.AddHours(-4)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature1").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature2").WithDateTime(DateTime.Now.AddHours(-5)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature2").WithDateTime(DateTime.Now.AddHours(-4)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature2").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature2").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature3").WithDateTime(DateTime.Now.AddHours(-5)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature3").WithDateTime(DateTime.Now.AddHours(-4)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature3").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature4").WithDateTime(DateTime.Now.AddHours(-5)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature4").WithDateTime(DateTime.Now.AddHours(-4)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature4").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature5").WithDateTime(DateTime.Now.AddHours(-5)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature5").WithDateTime(DateTime.Now.AddHours(-4)).Build(), Builders.Metric().WithKind("Failure").WithFeatureName("Feature5").WithDateTime(DateTime.Now.AddHours(-3)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature6").WithDateTime(DateTime.Now.AddHours(-22)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature6").WithDateTime(DateTime.Now.AddHours(-24)).Build(), Builders.Metric().WithKind("Success").WithFeatureName("Feature6").WithDateTime(DateTime.Now.AddHours(-25)).Build(), }); }