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 EnlistStartedOrchestration()
        {
            Skip.IfNot(BizTalkServerGroup.IsConfigured);

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

            orchestration.EnsureUnenlisted();
        }