Ejemplo n.º 1
0
        public void BuildTicketCashoutResponseDtoFromTicketCashoutResponseTest()
        {
            var dto    = TicketBuilderHelper.GetTicketCashoutResponse(null, SDK.Entities.Internal.Dto.TicketCashoutResponse.Status.Rejected);
            var ticket = new TicketCashoutResponseMapper(null).Map(dto, SR.S1000, null, dto.ToJson());

            TicketCompareHelper.Compare(ticket, dto);
        }
Ejemplo n.º 2
0
        public void TicketCashoutResponseToJsonTest()
        {
            var dto        = TicketBuilderHelper.GetTicketCashoutResponse(SR.S1000, Status.Accepted);
            var ticket     = new TicketCashoutResponseMapper(null).Map(dto, "c1", null, dto.ToJson());
            var ticketJson = ticket.ToJson();
            var dtoJson    = dto.ToJson();

            CheckResponseFields(ticketJson);
            CheckResponseFields(dtoJson);

            Assert.AreEqual(ticketJson, dtoJson);
        }