Example #1
0
        public void UnenlistUnenlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureUnenlisted();
            Assert.That(() => orchestration.Unenlist(), Throws.TypeOf <COMException>());
        }
Example #2
0
        public void UnenlistUnenlistedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

            using var orchestration = new Orchestration(_orchestrationType);
            orchestration.EnsureUnenlisted();
            Invoking(() => orchestration.Unenlist()).Should().Throw <COMException>();
        }
Example #3
0
        public void UnenlistStartedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureStarted();
            Assert.That(() => orchestration.Unenlist(), Throws.Nothing);
            Assert.That(orchestration.Status, Is.EqualTo(OrchestrationStatus.Unenlisted));
        }
Example #4
0
        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);
        }