private static Anonymous2 GetResponseBetDetail(string betId, bool reoffer, bool alt) { return(new Anonymous2 { BetId = string.IsNullOrEmpty(betId) ? "bet-id-" + SR.S1000 : betId, Reason = GetReason(), AlternativeStake = alt ? null : new AlternativeStake { Stake = SR.I1000P }, Reoffer = reoffer ? null : new Reoffer { Stake = SR.I1000P, Type = SR.B ? ReofferType.Auto : ReofferType.Manual }, SelectionDetails = new List <Anonymous3> { new Anonymous3 { SelectionIndex = SR.II(50), Reason = GetReason(), RejectionInfo = GetRejectionInfo() } } }); }
public void CreateSelectionWrongId2Test() { var item = new Selection(SR.S1000, SR.SL(1001), 123456, SR.B); Assert.IsNotNull(item); }
public void CreateSelectionIdLengthTest() { var item = new Selection(SR.S1000, SR.SL(1000), 123456, SR.B); Assert.IsNotNull(item); }