Example #1
0
        public void BuildTicketCancelAckDtoFromTicketCancelAckTest()
        {
            var ticket = new TicketCancelAck(SR.S1000, SR.I1000, TicketCancelAckStatus.NotCancelled, SR.I100, SR.S1000);
            var dto    = new TicketCancelAckMapper().Map(ticket);
            var json   = dto.ToJson();

            var newDto = TicketCancelAckDTO.FromJson(json);

            TicketCompareHelper.Compare(ticket, dto);
            TicketCompareHelper.Compare(ticket, newDto);
        }
Example #2
0
        public void TicketCancelAckToJsonTest()
        {
            var ticket     = TicketBuilderHelper.GetTicketCancelAck();
            var dto        = new TicketCancelAckMapper().Map(ticket);
            var ticketJson = ticket.ToJson();
            var dtoJson    = dto.ToJson();

            CheckMandatoryFields(ticketJson);
            CheckMandatoryFields(dtoJson);

            Assert.AreEqual(ticketJson, dtoJson);
        }