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