public static void WriteSet(IWriteAFileToDisk filewriter, LotteryNumberSet numbers)
        {
            var contents = string.Join(", ", numbers.Select(n => n.Value).ToArray());

            filewriter.WriteToDisk(contents);
        }
Beispiel #2
0
 public LotteryNumberSet GetLotteryNumberSet()
 {
     return(LotteryNumberSet.Generate(() => LotteryNumber.Generate(new MonoStateRandomNumberGenerator())));
 }