Esempio n. 1
0
        public void StartUnenlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureUnenlisted();
            Assert.That(() => orchestration.Start(), Throws.TypeOf <COMException>());
        }
Esempio n. 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));
        }
Esempio n. 3
0
        public void StartUnenlistedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

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