public virtual ApiSaleTicketsResponseModel MapBOToModel( BOSaleTickets boSaleTickets) { var model = new ApiSaleTicketsResponseModel(); model.SetProperties(boSaleTickets.Id, boSaleTickets.SaleId, boSaleTickets.TicketId); return(model); }
public void MapResponseToRequest() { var mapper = new ApiSaleTicketsModelMapper(); var model = new ApiSaleTicketsResponseModel(); model.SetProperties(1, 1, 1); ApiSaleTicketsRequestModel response = mapper.MapResponseToRequest(model); response.SaleId.Should().Be(1); response.TicketId.Should().Be(1); }