Example #1
0
        public void TicketAckToJsonTest()
        {
            var ticket     = TicketBuilderHelper.GetTicketAck();
            var dto        = new TicketAckMapper().Map(ticket);
            var ticketJson = ticket.ToJson();
            var dtoJson    = dto.ToJson();

            CheckMandatoryFields(ticketJson);
            CheckMandatoryFields(dtoJson);

            Assert.AreEqual(ticketJson, dtoJson);
        }