public void StartUnenlistedOrchestration() { var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); Assert.That(() => orchestration.Start(), 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 Dispose() { if (BizTalkServerGroup.IsConfigured) { var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); } }
public void UnenlistUnenlistedOrchestration() { Skip.IfNot(BizTalkServerGroup.IsConfigured); using var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); Invoking(() => orchestration.Unenlist()).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); }
public void OneTimeTearDown() { var orchestration = new Orchestration(_orchestrationType); orchestration.EnsureUnenlisted(); }