Beispiel #1
0
        public void CheckWithAutoTicketAltStakeRefIdTest()
        {
            var ticketBuilder = TicketBuilderHelper.GetTicketBuilder(_sender, null, 1, 1);

            var ticket         = ticketBuilder.BuildTicket();
            var altStakeRefId  = "A-" + SR.S1000;
            var altStakeTicket = _builderFactory.CreateAltStakeBuilder().Set(ticket, 200000, altStakeRefId).BuildTicket();
            var dto            = new TicketMapper().Map(altStakeTicket);
            var json           = dto.ToJson();

            CheckRequiredFields(json);

            Assert.IsTrue(json.Contains("altStakeRefId"));
            Assert.IsTrue(json.Contains(ticket.TicketId));
            Assert.IsTrue(json.Contains(altStakeRefId));
            Assert.IsTrue(json.Contains("200000"));
        }