示例#1
0
        public void EnlistStartedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureStarted();
            Assert.That(() => orchestration.Enlist(), Throws.TypeOf <COMException>());
        }
示例#2
0
        public void EnlistUnenlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureUnenlisted();
            Assert.That(() => orchestration.Enlist(), Throws.Nothing);
            Assert.That(orchestration.Status, Is.EqualTo(OrchestrationStatus.Enlisted));
        }
示例#3
0
        public void EnlistStartedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

            using var orchestration = new Orchestration(_orchestrationType);
            orchestration.EnsureStarted();
            Invoking(() => orchestration.Enlist()).Should().Throw <COMException>();
        }
示例#4
0
        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);
        }