public FiledPlayslipDto(Playslip playslip, Draw draw) { playslip.notNull(); RefId = playslip.RefId; IsInvalidOrEmpty = playslip.invalid() || !playslip.valid(); IsWin = playslip.valid() && null != draw && playslip.win(draw); }
public TemplateDto(Playslip playslip, Draw draw) { playslip.notNull(); IsInvalid = playslip.invalid(); RefId = playslip.RefId; Nr = playslip.Nr.AsString; HasSpiel77 = playslip.IsS77; HasSuper6 = playslip.IsS6; Boards = new List<BoardDto>(playslip.Select(board => new BoardDto(board, draw))); }