public virtual ApiColumnSameAsFKTableServerRequestModel MapServerResponseToRequest( ApiColumnSameAsFKTableServerResponseModel response) { var request = new ApiColumnSameAsFKTableServerRequestModel(); request.SetProperties( response.Person, response.PersonId); return(request); }
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); }