public virtual ApiClaspServerRequestModel MapServerResponseToRequest(
            ApiClaspServerResponseModel response)
        {
            var request = new ApiClaspServerRequestModel();

            request.SetProperties(
                response.NextChainId,
                response.PreviousChainId);
            return(request);
        }
Exemplo n.º 2
0
        public void MapModelToEntity()
        {
            var mapper = new DALClaspMapper();
            ApiClaspServerRequestModel model = new ApiClaspServerRequestModel();

            model.SetProperties(1, 1);
            Clasp response = mapper.MapModelToEntity(1, model);

            response.NextChainId.Should().Be(1);
            response.PreviousChainId.Should().Be(1);
        }