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

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

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

            orchestration.EnsureUnenlisted();
        }