public int LoadInteractions(string filename) { ProviderServicePactFile providerServicePactFile = (ProviderServicePactFile)JSonHelper.LoadObjFromJSonFile(filename, typeof(ProviderServicePactFile)); foreach (ProviderServiceInteraction PSI in providerServicePactFile.Interactions) { // PSI.Request.Headers.Add("content-type", "json"); AddInteraction(PSI); } return(providerServicePactFile.Interactions.Count()); }