public SelectionDetail(int selectionIndex, IResponseReason reason, IRejectionInfo rejectionInfo) { Guard.Argument(selectionIndex, nameof(selectionIndex)).InRange(0, 62); Guard.Argument(reason, nameof(reason)).NotNull(); SelectionIndex = selectionIndex; Reason = reason; RejectionInfo = rejectionInfo; }
private static void Compare(IRejectionInfo rejection, RejectionInfo dto) { Assert.AreEqual(rejection.Id, dto.Id); Assert.AreEqual(rejection.EventId, dto.EventId); Assert.AreEqual(rejection.Odds, dto.Odds); }