Esempio n. 1
0
        public void BuildTicketCancelResponseDtoFromTicketCancelResponseTest()
        {
            var dto    = TicketBuilderHelper.GetTicketCancelResponse();
            var ticket = new TicketCancelResponseMapper(null).Map(dto, SR.S1000, null, dto.ToJson());

            TicketCompareHelper.Compare(ticket, dto);
        }
Esempio n. 2
0
        public void TicketCancelResponseToJsonTest()
        {
            var dto        = TicketBuilderHelper.GetTicketCancelResponse();
            var ticket     = new TicketCancelResponseMapper(null).Map(dto, "c1", null, dto.ToJson());
            var ticketJson = ticket.ToJson();
            var dtoJson    = dto.ToJson();

            CheckResponseFields(ticketJson);
            CheckResponseFields(dtoJson);

            Assert.AreEqual(ticketJson, dtoJson);
        }