コード例 #1
0
        public void CreatePipelineDocument()
        {
            var pipeline = new ReceivePipelineImpl();

            var visitor          = new VisitorSpy();
            var pipelineDocument = visitor.CreatePipelineDocument(pipeline);

            pipelineDocument.PolicyFilePath.Should().Be(pipeline.GetPolicyFileName());
            pipelineDocument.Description.Should().Be("A receive pipeline.");
            pipelineDocument.MajorVersion.Should().Be(5);
            pipelineDocument.MinorVersion.Should().Be(6);
        }
コード例 #2
0
        public void CreatePipelineDocument()
        {
            var pipeline = new ReceivePipelineImpl();

            var visitor          = new VisitorSpy();
            var pipelineDocument = visitor.CreatePipelineDocument(pipeline);

            pipelineDocument.PolicyFilePath.Should().Be(pipeline.GetPolicyFileName());
            pipelineDocument.Description.Should().Be("A receive pipeline.");
            pipelineDocument.MajorVersion.Should().Be(5);
            pipelineDocument.MinorVersion.Should().Be(6);
            pipelineDocument.FriendlyName.Should().Be(PolicyFile.BTSReceivePolicy.Value.FriendlyName);
            pipelineDocument.CategoryId.Should().Be(PolicyFile.BTSReceivePolicy.Value.CategoryId.ToString());
        }