Beispiel #1
0
        public virtual ApiPersonTypeServerRequestModel MapServerResponseToRequest(
            ApiPersonTypeServerResponseModel response)
        {
            var request = new ApiPersonTypeServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALPersonTypeMapper();
            ApiPersonTypeServerRequestModel model = new ApiPersonTypeServerRequestModel();

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

            response.Name.Should().Be("A");
        }