Evaluation of emulsifying and foaming capacity of the legume flours and the influence of pH and ionic strength on these properties