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