コード例 #1
0
        public void CreateStageDocument()
        {
            var stage = new Stage(StageCategory.Decoder.Id, PolicyFile.BTSReceivePolicy.Value);

            var visitor       = new VisitorSpy();
            var stageDocument = visitor.CreateStageDocument(stage);

            stageDocument.CategoryId.Should().Be(StageCategory.Decoder.Id);
        }
コード例 #2
0
        public void CreateReceivePartyResolverStageDocument()
        {
            var stage = new Stage(StageCategory.PartyResolver.Id, PolicyFile.BTSReceivePolicy.Value);

            var visitor       = new VisitorSpy();
            var stageDocument = visitor.CreateStageDocument(stage);

            stageDocument.CategoryId.Should().Be(StageCategory.PartyResolver.Id);
            stageDocument.PolicyFileStage.Should().BeEquivalentTo(PolicyFile.BTSReceivePolicy.Value.Stages[3]);
        }
コード例 #3
0
        public void CreateSendPreAssemblerStageDocument()
        {
            var stage = new Stage(StageCategory.Any.Id, PolicyFile.BTSTransmitPolicy.Value);

            var visitor       = new VisitorSpy();
            var stageDocument = visitor.CreateStageDocument(stage);

            stageDocument.CategoryId.Should().Be(StageCategory.Any.Id);
            stageDocument.PolicyFileStage.Should().BeEquivalentTo(PolicyFile.BTSTransmitPolicy.Value.Stages[0]);
        }