public void BucketRange(int index, int bucketRange, string expected)
        {
            //arrange

            //act
            String result = BucketUtils.BucketRange(index, bucketRange);

            //assert
            Assert.Equal(expected, result);
        }
        private List <string> GenerateHeaders(IEnumerable <CohortGroup> cohortGroups)
        {
            List <string> headers = new List <string> {
                "Cohort",
                "Customers",
            };

            var maximumBuckets = cohortGroups
                                 .Max(item => item.Buckets.Count());

            for (int i = 0; i < maximumBuckets; i++)
            {
                headers
                .Add($"{BucketUtils.BucketRange(i, _settings.LifeCycleRange)} days");
            }

            return(headers);
        }