public void EnlistStartedOrchestration() { var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureStarted(); Assert.That(() => orchestration.Enlist(), Throws.TypeOf <COMException>()); }
public void EnlistUnenlistedOrchestration() { var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); Assert.That(() => orchestration.Enlist(), Throws.Nothing); Assert.That(orchestration.Status, Is.EqualTo(OrchestrationStatus.Enlisted)); }
public void EnlistStartedOrchestration() { Skip.IfNot(BizTalkServerGroup.IsConfigured); using var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureStarted(); Invoking(() => orchestration.Enlist()).Should().Throw <COMException>(); }
public void EnlistUnenlistedOrchestration() { Skip.IfNot(BizTalkServerGroup.IsConfigured); using var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); Invoking(() => orchestration.Enlist()).Should().NotThrow(); orchestration.Status.Should().Be(OrchestrationStatus.Enlisted); }