public void AddComponentToIncompatibleStageThrows()
        {
            var list = new ComponentList(new Stage(StageCategory.Decoder.Id, PolicyFile.BTSReceivePolicy.Value));

            Action(() => list.Add(new PartyRes())).Should()
            .Throw <ArgumentException>()
            .WithMessage("Party resolution is made for any of the PartyResolver stages and is not compatible with a Decoder stage.*");
        }
Example #2
0
        public void AddComponentToIncompatibleStageThrows()
        {
            var list = new ComponentList(new Stage(StageCategory.Decoder.Id));

            Assert.That(
                () => list.Add(new PartyRes()),
                Throws.ArgumentException.With.Message.StartsWith("Party resolution is made for any of the PartyResolver stages and is not compatible with a Decoder stage."));
        }
Example #3
0
        public void AddComponentToCompatibleStage()
        {
            var list = new ComponentList(new Stage(StageCategory.Decoder.Id));

            Assert.That(
                () => list.Add(new FailedMessageRoutingEnablerComponent()),
                Throws.Nothing);
        }
        public void AddComponentToCompatibleStage()
        {
            var list = new ComponentList(new Stage(StageCategory.Decoder.Id, PolicyFile.BTSReceivePolicy.Value));

            Action(() => list.Add(new FailedMessageRoutingEnablerComponent())).Should().NotThrow();
        }