コード例 #1
0
        public void StartUnenlistedOrchestration()
        {
            var orchestration = new Orchestration(_orchestrationType);

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

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

            orchestration.EnsureUnenlisted();
        }