Exemplo n.º 1
0
        public virtual ApiTicketServerRequestModel MapServerResponseToRequest(
            ApiTicketServerResponseModel response)
        {
            var request = new ApiTicketServerRequestModel();

            request.SetProperties(
                response.PublicId,
                response.TicketStatusId);
            return(request);
        }
Exemplo n.º 2
0
        public void MapModelToEntity()
        {
            var mapper = new DALTicketMapper();
            ApiTicketServerRequestModel model = new ApiTicketServerRequestModel();

            model.SetProperties("A", 1);
            Ticket response = mapper.MapModelToEntity(1, model);

            response.PublicId.Should().Be("A");
            response.TicketStatusId.Should().Be(1);
        }