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

            orchestration.EnsureUnenlisted();
            Assert.That(() => orchestration.Start(), 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 EnlistStartedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

            using var orchestration = new Orchestration(_orchestrationType);
            orchestration.EnsureStarted();
            Invoking(() => orchestration.Enlist()).Should().Throw <COMException>();
        }
Example #4
0
 public void Dispose()
 {
     if (BizTalkServerGroup.IsConfigured)
     {
         var orchestration = new Orchestration(_orchestrationType);
         orchestration.EnsureUnenlisted();
     }
 }
Example #5
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);
        }
Example #6
0
        public void OneTimeTearDown()
        {
            var orchestration = new Orchestration(_orchestrationType);

            orchestration.EnsureUnenlisted();
        }