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

            orchestration.EnsureNotUnenlisted();
            Assert.That(() => orchestration.Enlist(), Throws.TypeOf <COMException>());
        }
Example #2
0
        public void StartEnlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureNotUnenlisted();
            Assert.That(() => orchestration.Start(), Throws.Nothing);
            Assert.That(orchestration.Status, Is.EqualTo(OrchestrationStatus.Started));
        }
Example #3
0
        public void EnlistEnlistedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

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