コード例 #1
0
        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;
        }
コード例 #2
0
 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);
 }