public void BuildTicketReofferCancelDtoFromTicketTestW() { var ticket = TicketBuilderHelper.GetTicketReofferCancel(); var dto = new TicketReofferCancelMapper().Map(ticket); TicketCompareHelper.Compare(ticket, dto); }
public void SerializeTicketReofferCancelTest() { var ticket = TicketBuilderHelper.GetTicketReofferCancel(); var serialized = JsonConvert.SerializeObject(ticket); var deserializedTicket = JsonUtils.Deserialize <ITicketReofferCancel>(serialized); var serializedAgain = JsonUtils.Serialize(deserializedTicket); Assert.AreEqual(serialized, serializedAgain); }
public void TicketReofferCancelToJsonTest() { var ticket = TicketBuilderHelper.GetTicketReofferCancel(); var dto = new TicketReofferCancelMapper().Map(ticket); var ticketJson = ticket.ToJson(); var dtoJson = dto.ToJson(); CheckMandatoryFields(ticketJson); CheckMandatoryFields(dtoJson); Assert.AreEqual(ticketJson, dtoJson); }