AK.F1.Timing.Messages.Driver.PostedTimeTest.GetDistinctInstances C# (CSharp) Method

GetDistinctInstances() private static method

private static GetDistinctInstances ( ) : IEnumerable
return IEnumerable
        private static IEnumerable<PostedTime> GetDistinctInstances()
        {
            // Differ only in time.
            yield return new PostedTime(TimeSpan.FromSeconds(1), PostedTimeType.Normal, 1);
            yield return new PostedTime(TimeSpan.FromSeconds(2), PostedTimeType.Normal, 1);
            yield return new PostedTime(TimeSpan.FromSeconds(3), PostedTimeType.Normal, 1);
            // Differ only in type.
            yield return new PostedTime(TimeSpan.FromSeconds(4), PostedTimeType.Normal, 1);
            yield return new PostedTime(TimeSpan.FromSeconds(4), PostedTimeType.PersonalBest, 1);
            yield return new PostedTime(TimeSpan.FromSeconds(4), PostedTimeType.SessionBest, 1);
            // Differ only in laps.
            yield return new PostedTime(TimeSpan.FromSeconds(5), PostedTimeType.Normal, 1);
            yield return new PostedTime(TimeSpan.FromSeconds(5), PostedTimeType.Normal, 2);
            yield return new PostedTime(TimeSpan.FromSeconds(5), PostedTimeType.Normal, 3);
        }