public void WhenTheIsSentToBizTalkwithWCFBasicHTTP(string fileType, Table table) { Debug.WriteLine("WhenTheIsSentToBizTalkwithWCFBasicHTTP(" + fileType + ")"); var asm = ScenarioContext.Current["AssemblyContext"] as Assembly; string moduleName = asm.ManifestModule.Name.Replace(".dll", ""); var portName = table.Rows[0]["Port Name"]; var applicationName = table.Rows[0]["Application Name"]; var receivePort = BizTalkBill.TestingFramework.Utilities.Configuration.TestConfiguration.Current.ReceivePorts.Get(applicationName, portName + "." + fileType); Debug.WriteLine(receivePort.URL); //ScenarioContext.Current.Add(SharedSteps.InPortURIKey, receivePort.URL); new Logger().Write("Copying File: " + ScenarioContext.Current["TestDataFile"] as string + " To: " + receivePort.URL); string response = WCFHelper.BasicHTTPTwoWay(asm, moduleName + ".TestData." + ScenarioContext.Current["TestDataFile"] as string, receivePort.URL); ScenarioContext.Current.Add("WCFBasicHTTPResponse", response); new Logger().Write("Response: " + response); Debug.WriteLine("Response: " + response); }