public void RunWorkflowForXmlImplWithEmptyRootNameExpectedDoesNotChangeRootName() { var expectedXml = new XElement("MyRoot"); var workflows = new WorkflowsMock { ReturnXml = expectedXml.ToString() }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri, string.Empty); Assert.AreEqual(expectedXml.Name, result.Name); }
public void RunWorkflowForXmlImplWithRootNameExpectedDoesChangeRootName() { const string ExpectedRootName = "NewRoot"; var expectedXml = new XElement("MyRoot"); var workflows = new WorkflowsMock { ReturnXml = expectedXml.ToString() }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri, ExpectedRootName); Assert.AreEqual(ExpectedRootName, result.Name); }
public void RunWorkflowForXmlImplWithEmptyRootNameExpectedDoesNotChangeRootName() { var expectedXml = new XElement("MyRoot"); var workflows = new WorkflowsMock { ReturnXml = expectedXml.ToString() }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri, string.Empty); Assert.AreEqual(expectedXml.Name, result.Name); }
public void RunWorkflowForXmlImplWithValidParametersExpectedReturnsXml() { var expectedXml = _workflowResultXml.ToString(SaveOptions.DisableFormatting); var workflows = new WorkflowsMock { ReturnXml = expectedXml }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri); var actualXml = result.ToString(SaveOptions.DisableFormatting); Assert.AreEqual(expectedXml, actualXml); }
public void RunWorkflowForXmlImplWithRootNameExpectedDoesChangeRootName() { const string ExpectedRootName = "NewRoot"; var expectedXml = new XElement("MyRoot"); var workflows = new WorkflowsMock { ReturnXml = expectedXml.ToString() }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri, ExpectedRootName); Assert.AreEqual(ExpectedRootName, result.Name); }
public void RunWorkflowForXmlImplWithValidParametersExpectedReturnsXml() { var expectedXml = _workflowResultXml.ToString(SaveOptions.DisableFormatting); var workflows = new WorkflowsMock { ReturnXml = expectedXml }; var result = workflows.RunWorkflowForXmlImpl(TestServerUri); var actualXml = result.ToString(SaveOptions.DisableFormatting); Assert.AreEqual(expectedXml, actualXml); }