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

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