Exemplo n.º 1
0
        public void UnenlistUnenlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

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

            using var orchestration = new Orchestration(_orchestrationType);
            orchestration.EnsureUnenlisted();
            Invoking(() => orchestration.Unenlist()).Should().Throw <COMException>();
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
        }