public virtual ApiColumnSameAsFKTableServerRequestModel MapServerResponseToRequest(
            ApiColumnSameAsFKTableServerResponseModel response)
        {
            var request = new ApiColumnSameAsFKTableServerRequestModel();

            request.SetProperties(
                response.Person,
                response.PersonId);
            return(request);
        }
Esempio n. 2
0
        public void MapModelToEntity()
        {
            var mapper = new DALColumnSameAsFKTableMapper();
            ApiColumnSameAsFKTableServerRequestModel model = new ApiColumnSameAsFKTableServerRequestModel();

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

            response.Person.Should().Be(1);
            response.PersonId.Should().Be(1);
        }